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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
shl eax, 4
push esi
push edi
mov dword [esp + 0x18], eax
mov ecx, dword [ebx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov edi, dword [ecx + 0x10]
add edi, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100571dc
cmp dword [ebx + 0x74], eax
jne 0x100571d1
test byte [ecx + 0x4c], 8
jne 0x100571d1
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.10028fb0
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x74]
mov esi, ebx
test ecx, ecx
mov eax, 1
cmovne esi, ecx
mov ecx, dword [ebp + 8]
shl eax, cl
mov edx, dword [esi + 0x54]
test edx, eax
jne 0x1005720c
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x1005720c
mov ecx, esi
call fcn.1005a660
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x50]
or byte [esi + 0x14], 1
bts eax, ecx
mov dword [esi + 0x50], eax
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x2b], 1
jne 0x1005727b
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x10057248
mov ecx, dword [esp + 0x10]
mov edx, 0xa8
push 0
push 0
push 0
call fcn.10029250
add esp, 0xc
jmp 0x1005727b
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4], 0xa8
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, esi
mov ecx, ebx
call fcn.1007f920
mov esi, eax
test esi, esi
je 0x100572a0
nop word [eax + eax]
mov edx, esi
mov ecx, ebx
call fcn.100812a0
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10057290
mov esi, dword [esp + 0x14]
test byte [esi + 0x1c], 8
je 0x100572bc
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_sequence_WHERE_name_Q
push ebx
call fcn.10052380
add esp, 0x10
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_master_WHERE_tbl_name_Q_and_type_trigger
push ebx
call fcn.10052380
add esp, 0x10
mov edi, esi
cmp dword [ebp + 0xc], 0
jne 0x1005734d
cmp byte [edi + 0x2b], 1
je 0x10057353
mov eax, dword [edi + 0x14]
xor edx, edx
mov dword [esp + 0x14], eax
xor esi, esi
test edx, edx
je 0x100572ef
cmp eax, edx
jae 0x100572f1
mov esi, eax
mov eax, dword [edi + 8]
test eax, eax
je 0x1005730f
mov ecx, dword [eax + 0x2c]
test edx, edx
je 0x10057303
cmp ecx, edx
jae 0x10057308
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100572f8
test esi, esi
je 0x1005734d
mov edx, dword [edi + 0x3c]
mov ecx, 0xffff8000
test edx, edx
je 0x10057338
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10057338
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10057330
push ecx
mov edx, esi
mov ecx, ebx
call fcn.10056ca0
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, esi
jmp 0x100572e5
cmp byte [edi + 0x2b], 1
jne 0x1005737d
mov ecx, dword [esp + 0x10]
mov edx, 0xaa
push 0
push dword [edi]
push 0
push 0
push dword [ebp + 8]
call fcn.100296d0
mov eax, dword [ebx + 0x74]
add esp, 0x14
test eax, eax
mov ecx, ebx
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov esi, dword [edi]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x74]
cmp dword [edi + 0x78], edx
jg 0x100573a5
push 0
push 0
push dword [ebp + 8]
mov edx, 0x95
mov ecx, edi
call fcn.10029250
add esp, 0xc
mov edx, eax
jmp 0x100573db
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [ebp + 8]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x95
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x53], 0
jne 0x10057401
test edx, edx
jns 0x100573eb
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
push 0
push esi
lea edx, [eax + ecx*4]
mov ecx, edi
call fcn.1002a2c0
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov esi, dword [ebx + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x10057444
push edx
push 1
push dword [ebp + 8]
mov edx, 0x62
mov ecx, esi
call fcn.10029250
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
call fcn.10056a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, ebx
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
call fcn.10056a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret