Function at 0x100d75c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x50
mov ebx, eax
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [edi], 1
call fcn.100ff5c0
add esp, 0xc
cmp dword [ebp + 0x1c], esi
je 0x100d7607
mov byte [esp + 0x71], 1
cmp dword [ebp + 0x20], esi
jne 0x100d760c
mov byte [esp + 0x71], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov edx, ebx
shr ecx, 1
shr edx, 2
and ecx, 1
and dl, 1
mov dword [esp + 0x54], ecx
mov byte [esp + 0x72], dl
test eax, eax
je 0x100d7637
push eax
call dword [0x1012c438]
add esp, 4
and ebx, 1
mov dword [esp + 0x7c], ebx
jne 0x100d7663
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push str.SAVEPOINT_changeset_apply
push ecx
call sym.MyService.dll_sqlite3_exec
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a1b
mov edx, dword [ebp + 8]
push 0
push 0
push 0
push str.PRAGMA_defer_foreign_keys__1
push edx
call sym.MyService.dll_sqlite3_exec
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a1b
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
mov eax, edi
call fcn.100d4800
add esp, 0xc
cmp eax, 0x64
jne 0x100d7a18
mov eax, dword [edi + 0x50]
mov ebx, dword [edi + 0x4c]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x100d76c8
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
push esi
push ebx
call sym.MyService.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x100d79e7
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0x38]
push edx
mov edx, dword [ebp + 8]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x3c]
call fcn.100d73a0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a18
lea eax, [esp + 0x28]
push eax
call fcn.100d5e20
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
call sym.MyService.dll_sqlite3_free
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call sym.MyService.dll_sqlite3_finalize
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call sym.MyService.dll_sqlite3_finalize
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call sym.MyService.dll_sqlite3_finalize
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
xor eax, eax
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 1
mov byte [esp + 0x70], al
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
cmp ecx, eax
je 0x100d77c6
mov edx, dword [ebp + 0x18]
push ebx
push edx
call ecx
add esp, 8
test eax, eax
jne 0x100d77c6
push ebx
push 0x10112e4c
mov dword [esp + 0x28], 1
call sym.MyService.dll_sqlite3_mprintf
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x100d7a34
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d77b0
sub eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], esi
jmp 0x100d7686
mov eax, dword [edi + 0x5c]
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x28], eax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push esi
push 0
mov eax, str.main
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
call fcn.100d06e0
add esp, 0x20
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a3e
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
test ecx, ecx
jle 0x100d783f
mov eax, 1
mov edx, ecx
lea ebx, [ebx]
cmp byte [esi + eax - 1], 0
je 0x100d7839
mov edi, eax
inc eax
dec edx
jne 0x100d7830
test ecx, ecx
jne 0x100d7850
mov esi, dword [esp + 0x14]
push esi
push str.sqlite3changeset_apply__:_no_such_table:__s
jmp 0x100d79b4
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jge 0x100d787b
mov esi, dword [esp + 0x14]
push eax
push ecx
push esi
push str.sqlite3changeset_apply__:_table__s_has__d_columns__expected__d_or_more
push 0x11
mov dword [esp + 0x34], 1
call sym.MyService.dll_sqlite3_log
add esp, 0x14
jmp 0x100d79c6
cmp eax, edi
jl 0x100d79aa
mov ecx, dword [esp + 0x24]
mov ebx, eax
cmp ebx, 4
jb 0x100d78a8
mov edi, edi
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x100d79aa
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x100d7890
test eax, eax
je 0x100d78d8
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x100d79aa
cmp eax, 1
jbe 0x100d78d8
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x100d79aa
cmp eax, 2
jbe 0x100d78d8
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x100d79aa
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
test esi, esi
je 0x100d7939
mov edi, str.sqlite_stat1
mov ecx, esi
sub edi, esi
lea ecx, [ecx]
movzx eax, byte [ecx]
movzx edx, byte [edi + ecx]
cmp eax, edx
jne 0x100d7924
test eax, eax
jne 0x100d7936
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
call fcn.100d6790
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a18
mov dword [esp + 0x4c], 1
jmp 0x100d79c6
movzx edx, byte [edx + 0x10112f10]
movzx eax, byte [eax + 0x10112f10]
sub eax, edx
jne 0x100d7939
inc ecx
jmp 0x100d78f0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x78]
push edx
movzx edx, byte [esp + 0x7a]
push eax
push ebx
push ecx
push esi
push str.main
push edx
push edi
call fcn.100d2fc0
add esp, 0x24
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a18
push edi
lea ecx, [esp + 0x2c]
mov edx, esi
call fcn.100d5f20
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a18
lea eax, [esp + 0x28]
push eax
push esi
push edi
call fcn.100d6520
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7a18
mov dword [esp + 0x4c], eax
jmp 0x100d79c6
mov esi, dword [esp + 0x14]
push esi
push str.sqlite3changeset_apply__:_primary_key_mismatch_for_table__s
push 0x11
mov dword [esp + 0x2c], 1
call sym.MyService.dll_sqlite3_log
add esp, 0xc
test esi, esi
jne 0x100d79d0
mov dword [esp + 0x18], esi
jmp 0x100d79e7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100d79d5
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0
jne 0x100d7a0d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
lea ebx, [esp + 0x34]
call fcn.100d7290
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x100d7686
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x1c], ecx
push edi
test ebx, ebx
jne 0x100d7a44
call sym.MyService.dll_sqlite3changeset_finalize
mov ebx, eax
jmp 0x100d7a49
mov dword [esp + 0x10], 7
jmp 0x100d7a1b
mov esi, dword [esp + 0x14]
jmp 0x100d7a1b
call sym.MyService.dll_sqlite3changeset_finalize
add esp, 4
test ebx, ebx
jne 0x100d7b16
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push edi
push ebx
push esi
push edx
push eax
lea eax, [esp + 0x3c]
call fcn.100d73a0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100d7b12
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100d7a92
push eax
call dword [0x1012c438]
add esp, 4
cmp dword [esi + 0x21c], 0
jg 0x100d7abe
jl 0x100d7aa6
cmp dword [esi + 0x218], 0
ja 0x100d7abe
cmp dword [esi + 0x214], 0
jg 0x100d7abe
jl 0x100d7aba
cmp dword [esi + 0x210], 0
ja 0x100d7abe
xor esi, esi
jmp 0x100d7ac3
mov esi, 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x100d7ad7
push eax
call dword [0x1012c440]
add esp, 4
test esi, esi
je 0x100d7b12
push 0x64
lea edx, [esp + 0x84]
push 0
push edx
call fcn.100ff5c0
add esp, 0xc
lea eax, [esp + 0x80]
push eax
push 5
push edi
mov dword [esp + 0xdc], esi
call ebx
add esp, 0xc
test eax, eax
je 0x100d7b12
mov dword [esp + 0x10], 0x13
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push str.PRAGMA_defer_foreign_keys__0
push edi
call sym.MyService.dll_sqlite3_exec
add esp, 0x14
cmp dword [esp + 0x7c], 0
jne 0x100d7b6f
push 0
push 0
push 0
test ebx, ebx
jne 0x100d7b4d
push str.RELEASE_changeset_apply
push edi
call sym.MyService.dll_sqlite3_exec
mov ebx, eax
jmp 0x100d7b6c
push str.ROLLBACK_TO_changeset_apply
push edi
call sym.MyService.dll_sqlite3_exec
add esp, 0x14
push 0
push 0
push 0
push str.RELEASE_changeset_apply
push edi
call sym.MyService.dll_sqlite3_exec
add esp, 0x14
test ebx, ebx
jne 0x100d7b95
cmp dword [esp + 0x1c], ebx
jne 0x100d7b95
cmp byte [esp + 0x71], bl
je 0x100d7b95
mov ecx, dword [esp + 0x64]
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x68]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov dword [esp + 0x64], ebx
lea edx, [esp + 0x28]
push edx
call fcn.100d5e20
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call sym.MyService.dll_sqlite3_finalize
mov ecx, dword [esp + 0x30]
add esp, 4
push ecx
call sym.MyService.dll_sqlite3_finalize
mov edx, dword [esp + 0x38]
add esp, 4
push edx
call sym.MyService.dll_sqlite3_finalize
mov esi, dword [esp + 0x40]
add esp, 4
test esi, esi
je 0x100d7c29
cmp dword [0x1012c3e8], 0
je 0x100d7c1f
mov eax, dword [0x1013afb8]
test eax, eax
je 0x100d7bed
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d7c2e
push eax
call dword [0x1012c440]
jmp 0x100d7c26
push esi
call dword [0x1012c40c]
add esp, 4
mov eax, dword [0x1013afb8]
mov esi, dword [esp + 0x58]
test esi, esi
je 0x100d7c8e
cmp dword [0x1012c3e8], 0
je 0x100d7c7f
test eax, eax
je 0x100d7c4d
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d7c8e
push eax
call dword [0x1012c440]
jmp 0x100d7c86
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
mov esi, dword [esp + 0x64]
test esi, esi
je 0x100d7ce9
cmp dword [0x1012c3e8], 0
je 0x100d7cdf
test eax, eax
je 0x100d7cad
push eax
call dword [0x1012c438]
add esp, 4
push esi
call dword [0x1012c414]
sub dword [0x1013af50], eax
dec dword [0x1013af74]
add esp, 4
push esi
call dword [0x1012c40c]
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x100d7ce9
push eax
call dword [0x1012c440]
jmp 0x100d7ce6
push esi
call dword [0x1012c40c]
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100d7cfa
push eax
call dword [0x1012c440]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret