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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
push ebx
push esi
mov eax, edx
mov dword [esp + 0x18], 0
push edi
push 0x4c
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [eax], 1
mov ebx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebx
push esi
xor edi, edi
push eax
mov dword [esp + 0x24], edi
call fcn.10002790
add esp, 0xc
mov byte [esp + 0x71], 0
mov ecx, ebx
mov dword [esp + 0x54], esi
call fcn.1010cc30
test eax, eax
jne 0x100479f5
push 0x10130974
push 0x28e96
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0x14
jmp 0x10047a06
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10047a06
push eax
call dword [0x10142318]
add esp, 4
push 0
push 0
push 0
push str.SAVEPOINT_changeset_apply
push ebx
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10047db8
push eax
push eax
push eax
push str.PRAGMA_defer_foreign_keys__1
push dword [esp + 0x20]
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10047db8
push ecx
mov ecx, dword [esp + 0x18]
xor edx, edx
push 0
call fcn.1004a9a0
add esp, 8
cmp eax, 0x64
jne 0x10047db8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x4c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
test edi, edi
je 0x10047a88
lea eax, [esi + 1]
push eax
push edi
push ecx
call fcn.1010dda0
add esp, 0xc
test eax, eax
je 0x10047d7f
push dword [ebp + 0x10]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push dword [ebp + 0xc]
mov ecx, esi
push eax
mov eax, dword [esp + 0x20]
push edi
mov edx, dword [eax + 0x38]
call fcn.10048130
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10047dbc
lea ecx, [esp + 0x28]
call fcn.10049620
push dword [esp + 0x3c]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
push dword [esp + 0x2c]
call fcn.100e6950
add esp, 4
push dword [esp + 0x30]
call fcn.100e6950
add esp, 4
push dword [esp + 0x34]
call fcn.100e6950
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov byte [esp + 0x70], bl
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], ebx
movups xmmword [esp + 0x2c], xmm0
test eax, eax
je 0x10047b72
push edi
push dword [ebp + 0x10]
call eax
add esp, 8
test eax, eax
jne 0x10047b72
push edi
push 0x10128c10
mov dword [esp + 0x24], 1
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x10047dad
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10047b60
sub esi, ecx
mov dword [esp + 0x3c], edi
jmp 0x10047a42
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov esi, dword [eax + 0x5c]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x80], esi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
push eax
push edi
push str.main
call fcn.1004ef80
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x10047db4
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x78], eax
test edi, edi
jle 0x10047c05
mov esi, eax
nop dword [eax + eax]
cmp byte [esi + edx], 0
lea ecx, [esi + 1]
mov eax, ecx
mov esi, ecx
cmove eax, ebx
mov ebx, eax
cmp esi, edi
jl 0x10047be0
mov esi, dword [esp + 0x7c]
test edi, edi
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x80]
jne 0x10047c16
mov edi, dword [esp + 0x18]
push edi
push str.SIcc134e65c80c0c61__:_no_such_table:__s
jmp 0x10047d4d
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x10047c41
push eax
push edi
mov edi, dword [esp + 0x20]
push edi
push str.SIcc134e65c80c0c61__:_table__s_has__d_columns__expected__d_or_more
push 0x11
mov dword [esp + 0x30], 1
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0x14
jmp 0x10047d5f
cmp eax, dword [esp + 0x20]
jl 0x10047d43
mov ecx, eax
sub ecx, 4
jb 0x10047c63
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10047c68
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10047c52
cmp ecx, 0xfffffffc
je 0x10047ca5
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10047d43
cmp ecx, 0xfffffffd
je 0x10047ca5
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10047d43
cmp ecx, 0xfffffffe
je 0x10047ca5
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10047d43
cmp ecx, 0xffffffff
je 0x10047ca5
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x10047d43
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
test edi, edi
je 0x10047ce8
mov edx, str.sqlite_stat1
mov ecx, edi
call fcn.1010de20
test eax, eax
jne 0x10047ce8
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.10048d60
mov ebx, eax
test ebx, ebx
jne 0x10047dbc
mov dword [esp + 0x4c], 1
jmp 0x10047d5f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
mov edx, edi
mov ecx, esi
call fcn.10049070
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10047dbc
lea eax, [esp + 0x28]
mov edx, edi
push eax
mov ecx, esi
call fcn.100490a0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10047dbc
lea eax, [esp + 0x28]
mov edx, edi
push eax
mov ecx, esi
call fcn.10048df0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10047dbc
mov dword [esp + 0x4c], eax
jmp 0x10047d5f
mov edi, dword [esp + 0x18]
push edi
push str.SIcc134e65c80c0c61__:_primary_key_mismatch_for_table__s
push 0x11
mov dword [esp + 0x28], 1
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0xc
test edi, edi
jne 0x10047d67
xor esi, esi
jmp 0x10047d7f
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10047d70
sub esi, ecx
and esi, 0x3fffffff
cmp dword [esp + 0x1c], 0
jne 0x10047da3
push dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
push eax
call fcn.10048350
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x10047a42
jmp 0x10047db8
mov ebx, 7
jmp 0x10047dbc
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x10047dd5
call sym.SQLite.Interop.dll_SIf71b64d343ddea8b
mov ebx, eax
jmp 0x10047dda
call sym.SQLite.Interop.dll_SIf71b64d343ddea8b
add esp, 4
test ebx, ebx
jne 0x10047ef6
push dword [ebp + 0x10]
lea eax, [esp + 0x2c]
mov ecx, esi
push dword [ebp + 0xc]
push eax
push edi
mov edi, dword [esp + 0x24]
mov edx, edi
call fcn.10048130
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10047efa
test esi, esi
jne 0x10047e16
push str.NULL
jmp 0x10047e31
mov al, byte [esi + 0x5d]
cmp al, 0x76
je 0x10047e67
cmp al, 0xba
je 0x10047e2c
cmp al, 0x6d
je 0x10047e2c
push str.invalid
jmp 0x10047e31
push str.unopened
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0xc
push 0x10130974
push 0x5828
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.SQLite.Interop.dll_SI950480ab972e108d
mov edi, dword [esp + 0x98]
add esp, 0x14
jmp 0x10047eba
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10047e78
push eax
call dword [0x10142318]
add esp, 4
cmp dword [esi + 0x21c], 0
jg 0x10047ea4
jl 0x10047e8c
cmp dword [esi + 0x218], 0
ja 0x10047ea4
cmp dword [esi + 0x214], 0
jg 0x10047ea4
jl 0x10047ea0
cmp dword [esi + 0x210], 0
ja 0x10047ea4
xor edi, edi
jmp 0x10047ea9
mov edi, 1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10047eba
push eax
call dword [0x10142320]
add esp, 4
test edi, edi
je 0x10047ef6
push 0x64
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.10002790
add esp, 0xc
mov dword [esp + 0xd8], edi
lea eax, [esp + 0x88]
push eax
push 5
push dword [ebp + 0x10]
call dword [ebp + 0xc]
add esp, 0xc
mov ecx, 0x13
test eax, eax
cmovne ebx, ecx
mov edi, dword [esp + 0x14]
push 0
push 0
push 0
push str.PRAGMA_defer_foreign_keys__0
push esi
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
add esp, 0x14
push 0
push 0
push 0
test ebx, ebx
jne 0x10047f27
push str.RELEASE_changeset_apply
push esi
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
mov ebx, eax
jmp 0x10047f46
push str.ROLLBACK_TO_changeset_apply
push esi
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
add esp, 0x14
push 0
push 0
push 0
push str.RELEASE_changeset_apply
push esi
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
add esp, 0x14
test ebx, ebx
jne 0x10047f69
test edi, edi
jne 0x10047f69
cmp byte [esp + 0x71], bl
je 0x10047f69
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [ecx], eax
mov eax, dword [esp + 0x68]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.10049620
push dword [esp + 0x30]
call fcn.100e6950
add esp, 4
push dword [esp + 0x2c]
call fcn.100e6950
add esp, 4
push dword [esp + 0x34]
call fcn.100e6950
mov edi, dword [esp + 0x40]
add esp, 4
test edi, edi
je 0x10047ff6
cmp dword [0x101422c8], 0
je 0x10047fec
mov eax, dword [0x101441e8]
test eax, eax
je 0x10047fba
push eax
call dword [0x10142318]
add esp, 4
push edi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x10047ffb
push eax
call dword [0x10142320]
jmp 0x10047ff3
push edi
call dword [0x101422ec]
add esp, 4
mov eax, dword [0x101441e8]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x1004805b
cmp dword [0x101422c8], 0
je 0x1004804c
test eax, eax
je 0x1004801a
push eax
call dword [0x10142318]
add esp, 4
push edi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x1004805b
push eax
call dword [0x10142320]
jmp 0x10048053
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
mov edi, dword [esp + 0x64]
test edi, edi
je 0x100480b6
cmp dword [0x101422c8], 0
je 0x100480ac
test eax, eax
je 0x1004807a
push eax
call dword [0x10142318]
add esp, 4
push edi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x100480b6
push eax
call dword [0x10142320]
jmp 0x100480b3
push edi
call dword [0x101422ec]
add esp, 4
test esi, esi
jne 0x100480c1
push str.NULL
jmp 0x100480dc
mov al, byte [esi + 0x5d]
cmp al, 0x76
je 0x10048112
cmp al, 0xba
je 0x100480d7
cmp al, 0x6d
je 0x100480d7
push str.invalid
jmp 0x100480dc
push str.unopened
push str.API_call_with__s_database_connection_pointer
push 0x15
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0xc
push 0x10130974
push 0x28e96
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.SQLite.Interop.dll_SI950480ab972e108d
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10048123
push eax
call dword [0x10142320]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret