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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x100]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x2c], 0
test byte [eax + 0x50], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jne 0x1003965e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*8]
mov eax, dword [edx + 0x20]
shl ecx, 3
cmp dword [edx + 0x44], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov ebx, dword [ecx + eax + 0x34]
mov ecx, dword [ecx + eax + 0x1c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ecx
jne 0x1003965e
cmp dword [ecx + 0x44], 0
jne 0x1003965e
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x20]
test eax, eax
je 0x10039601
cmp dword [edx + 0x3c], 0
jne 0x1003965e
cmp dword [eax + 0x10], 0
jne 0x1003965e
test dword [edx + 4], 0x100
je 0x1003960e
test eax, eax
jne 0x1003965e
cmp dword [edi], 0
je 0x1003965e
mov edx, dword [ecx + 4]
test dl, 1
jne 0x1003965e
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x1003962e
mov esi, dword [ebp - 4]
cmp dword [esi], 1
jg 0x1003965e
test ebx, ebx
jne 0x1003965e
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
mov esi, dword [edi]
je 0x1003963f
cmp dword [ecx + 0x30], 0
jne 0x1003965e
test ebx, ebx
je 0x10039649
cmp dword [ecx + 0x30], 0
jne 0x1003965e
test eax, eax
mov eax, dword [ebp + 0xc]
je 0x10039667
cmp dword [eax + 0x24], 0
jne 0x1003965e
mov ecx, dword [eax + 4]
and ecx, 1
je 0x1003966d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
and ecx, 1
test edx, 0x2000
jne 0x1003965e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add edx, 0x2c
add edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], edx
mov dl, byte [edx]
test dl, 0x60
je 0x100396b1
cmp esi, 1
jg 0x1003965e
mov eax, dword [edi + 0x18]
cmp byte [eax + 0x2b], 1
je 0x1003965e
test ecx, ecx
jne 0x1003965e
test dl, 0x10
jne 0x1003965e
mov eax, dword [ebp - 4]
mov edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x100396b3
xor edx, edx
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x100396c0
test byte [edi + 0x2c], 0x40
jne 0x1003965e
mov edi, dword [ebp - 8]
test dword [edi + eax + 0x30], 0x100
je 0x100396d7
mov eax, dword [edi + eax + 0x4c]
cmp byte [eax + 0x12], 0
je 0x1003965e
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x34], 0
je 0x1003980b
cmp dword [edi + 0x30], 0
jne 0x1003965e
test ebx, ebx
jne 0x1003965e
test ecx, ecx
jne 0x1003965e
test edx, edx
jne 0x1003965e
mov eax, edi
nop dword [eax + eax]
test byte [eax + 4], 9
jne 0x1003965e
mov edx, dword [eax + 0x34]
test edx, edx
je 0x1003972a
cmp byte [eax], 0x87
jne 0x1003965e
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 1
jl 0x1003965e
cmp dword [eax + 0x44], 0
jne 0x1003965e
test esi, esi
jle 0x1003974e
test byte [ecx + 0x2c], 0x40
jne 0x1003965e
mov eax, edx
test eax, eax
jne 0x10039710
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x10039782
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
jle 0x10039782
add eax, 0x18
nop dword [eax]
cmp word [eax], 0
je 0x1003965e
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x10039770
test dword [ebx + 4], 0x2000
jne 0x1003965e
push edi
call fcn.1002e620
add esp, 4
test eax, eax
jne 0x1003965e
mov ebx, dword [ebp - 4]
cmp dword [ebx], 1
jle 0x1003980e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68], 0x1f4
jg 0x1003965e
mov ecx, dword [ebp - 0x14]
test dword [ecx + 0x50], 0x800000
jne 0x1003965e
mov eax, dword [eax + 0x28]
cdq
mov esi, eax
add esi, 1
adc edx, 0
shld edx, esi, 2
push edx
shl esi, 2
push esi
push ecx
call fcn.10093fb0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10039808
push esi
push 0
push ebx
call fcn.100fc010
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [esi + 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
jmp 0x10039811
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
push 0
push 0
push 0
mov eax, dword [eax + ebx + 0x10]
push 0x15
push esi
mov dword [esi + 0x100], eax
call fcn.1008a9b0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x100], eax
push dword [ecx + ebx + 0xc]
mov eax, dword [ecx + ebx + 0x1c]
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
call fcn.10093e80
mov eax, dword [ebp - 8]
push dword [eax + ebx + 0x10]
push dword [ebp - 0x14]
call fcn.10093e80
mov eax, dword [ebp - 8]
push dword [eax + ebx + 0x14]
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.10093e80
mov eax, dword [ebp - 8]
add esp, 0x2c
mov ecx, dword [ebp - 4]
mov dword [eax + ecx + 0xc], 0
mov dword [eax + ecx + 0x10], 0
mov dword [eax + ecx + 0x14], 0
mov dword [eax + ecx + 0x1c], 0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10039999
mov edx, dword [ebp + 0xc]
jmp 0x100398a9
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x30]
mov esi, dword [edx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
push 0
push edx
push dword [ebp - 0x14]
mov edi, dword [eax + ecx + 0x18]
mov dword [eax + ecx + 0x18], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x3c], 0
call fcn.100c1d60
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [edx + 0x3c], esi
mov esi, dword [ebp - 8]
mov dword [edx + 0x30], ebx
mov byte [edx], 0x87
mov dword [esi + eax + 0x18], edi
mov esi, dword [ebp + 8]
test ecx, ecx
jne 0x1003990e
mov eax, dword [ebp - 0x20]
jmp 0x10039982
inc dword [esi + 0x68]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x68]
mov dword [ecx + 0x10], eax
test ebx, ebx
je 0x10039970
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x57], 0
jne 0x10039970
push dword [ebp + 0x10]
push dword [ecx + 0x20]
push ebx
push esi
call fcn.100e22f0
push dword [ebp - 0x18]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push eax
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], 0x1007f740
mov dword [ebp - 0x4c], sym.e_sqlite3.dll_sqlite3_global_recover
call fcn.100d8640
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x1003997d
mov dword [eax + 0x38], ecx
mov dword [ecx + 0x38], edx
mov eax, ecx
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100398a6
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
call fcn.10093e80
add esp, 8
cmp byte [ebx + 0x57], 0
je 0x100399c4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
pop edi
mov dword [ecx + eax + 0x1c], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov edx, dword [edi + ebx + 0x18]
test edx, edx
je 0x10039a01
mov eax, dword [edx + 0x18]
cmp eax, 1
jne 0x100399f5
mov eax, dword [esi + 0x78]
mov ecx, esi
test eax, eax
push edx
cmovne ecx, eax
push 0x100951d0
push ecx
call fcn.100b6ce0
add esp, 0xc
jmp 0x100399f9
dec eax
mov dword [edx + 0x18], eax
mov dword [edi + ebx + 0x18], 0
mov edx, dword [ebp + 0xc]
mov ebx, edx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edx
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x20]
mov byte [ebp - 0xa], 0
mov dword [ebp - 0x18], ecx
mov al, byte [eax]
and al, 0x40
mov byte [ebp - 9], al
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [eax]
mov dword [ebp - 0x20], edi
cmp ebx, edx
jne 0x10039a3b
mov edx, dword [ebp - 0x34]
mov dl, byte [edx]
mov byte [ebp - 0xa], dl
cmp edi, 1
jle 0x10039a6a
mov eax, dword [ebp + 0x10]
inc eax
push eax
lea eax, [edi - 1]
push eax
push ecx
push dword [ebp + 8]
call fcn.100c2e20
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x10039d14
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x20], ecx
jmp 0x10039a72
test edi, edi
jle 0x10039af3
mov esi, dword [ebp - 8]
lea edi, [eax + 8]
mov eax, dword [ebp - 0x20]
add esi, 0x2c
mov bl, byte [ebp - 9]
add esi, ecx
mov dword [ebp - 0x1c], eax
test dword [esi + 4], 0x400
je 0x10039a9d
push dword [esi + 0xc]
push dword [ebp - 0x14]
call fcn.100afad0
add esp, 8
movups xmm0, xmmword [edi]
push 0x48
push 0
movups xmmword [esi - 0x24], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi - 0x14], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi - 4], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0xc], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esi + 0x1c], xmm0
or byte [esi], bl
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x28], eax
call fcn.100fc010
add esp, 0xc
add esi, 0x48
add edi, 0x48
sub dword [ebp - 0x1c], 1
jne 0x10039a86
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, ecx
lea ecx, [eax + 0x2c]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
and al, 0x40
mov dword [ebp - 0x24], ecx
or al, byte [ebp - 9]
or al, byte [ebp - 0xa]
mov byte [ecx], al
mov edx, dword [esi + 0x30]
test edx, edx
je 0x10039b41
test dword [ebx + 4], 0x400000
jne 0x10039b41
xor ecx, ecx
cmp dword [edx], ecx
jle 0x10039b37
lea eax, [edx + 0x18]
xor esi, esi
lea eax, [eax + 0x14]
mov word [eax - 0x14], si
inc ecx
cmp ecx, dword [edx]
jl 0x10039b26
mov esi, dword [ebp - 4]
mov dword [ebx + 0x30], edx
mov dword [esi + 0x30], 0
cmp dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov esi, dword [esi + 0x24]
mov dword [eax + 0x24], 0
jbe 0x10039b62
push 1
push dword [ebp - 0x28]
push esi
call fcn.100c2330
add esp, 0xc
test esi, esi
je 0x10039c31
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10039c2e
mov eax, dword [ebp + 8]
push 0
push 0x34
push dword [eax]
call fcn.10093fb0
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10039c0d
push 0x34
push 0
push eax
call fcn.100fc010
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add esp, 0xc
mov word [edx + 0x22], ax
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov byte [edx], 0x2c
mov eax, dword [eax + 4]
and eax, 0x400208
or dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
inc eax
mov dword [edx + 0x18], eax
mov ecx, dword [edx + 0x18]
mov dword [edx + 0xc], esi
mov eax, dword [esi + 4]
and eax, 0x400208
or dword [edx + 4], eax
mov eax, dword [esi + 0x18]
cmp eax, ecx
jl 0x10039be7
lea ecx, [eax + 1]
mov dword [edx + 0x18], ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x84]
cmp ecx, eax
jle 0x10039c29
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push esi
call fcn.10096580
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx + 0x24], edx
jmp 0x10039c31
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call fcn.1009a210
mov eax, dword [ebp - 0x10]
push eax
push dword [esi]
call fcn.1009a210
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov dword [ebx + 0x24], edx
jmp 0x10039c31
mov dword [ebx + 0x24], esi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
cmp byte [eax + 0x57], 0
jne 0x10039c82
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10039c6d
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x10039c64
mov eax, dword [ecx + 0x1c]
push 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.100e2960
add esp, 0xc
mov eax, dword [esi + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10039c9e
mov dword [ebx + 0x3c], eax
mov dword [esi + 0x3c], 0
test edi, edi
jle 0x10039cfd
mov esi, dword [ebp - 0x1c]
add esi, 0x40
cmp dword [esi - 0x28], 0
je 0x10039cf2
lea eax, [esi - 0x38]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x70]
movlpd qword [ebp - 0x64], xmm0
push ebx
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0x1007caf0
mov dword [ebp - 0x68], sym.e_sqlite3.dll_sqlite3_global_recover
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100d8640
add esp, 8
add esi, 0x48
sub edi, 1
jne 0x10039ca8
mov esi, dword [ebp - 4]
mov ebx, dword [ebx + 0x34]
mov esi, dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
test ebx, ebx
jne 0x10039a10
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
call fcn.10088a80
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.100d8640
add esp, 0x10
test ebx, ebx
je 0x10039d48
push 1
push ebx
push dword [ebp - 0x14]
call fcn.1002bd80
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret