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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov ebx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
test byte [esi + 1], 0x20
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], edi
je 0x10039e77
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10039e24
nop dword [eax]
cmp ecx, esi
je 0x10039e1d
test edx, edx
je 0x10039e5f
cmp dword [ecx + 0x40], edx
je 0x10039e5f
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x10039e10
and byte [esi + 1], 0xdf
cmp dword [esp + 0x14], 0
je 0x10039e77
cmp byte [esi + 0x44], 0
jge 0x10039e77
push 0x10131d5c
push 0x12ea8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x10039e24
push esi
call fcn.10030ee0
add esp, 4
test eax, eax
je 0x10039e28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 3
jb 0x10039e96
mov ecx, esi
call fcn.100355e0
mov edi, eax
test edi, edi
je 0x10039e92
cmp edi, 0x10
jne 0x1003a49a
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x1003a016
cmp byte [edi + 0xb], 0
je 0x10039efa
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x40]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x10039ef7
mov ebx, dword [esp + 0x1c]
nop dword [eax]
test byte [eax + 1], 0x10
je 0x10039eec
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x10039eec
cmp dword [eax + 0x20], edx
jne 0x10039eec
cmp dword [eax + 0x24], edi
jne 0x10039eec
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10039ed0
mov ebx, dword [esp + 0x28]
mov edx, dword [ebp + 8]
test byte [esi + 1], 2
je 0x10039faa
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x20]
jne 0x10039faa
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x24]
jne 0x10039faa
cmp word [esi + 0x32], 0
je 0x10039fd6
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x2c], eax
jne 0x10039fd6
movzx edi, word [esi + 0x30]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x74]
lea eax, [edx + edi]
cmp eax, dword [ecx + 0x3c]
ja 0x10039f80
movzx eax, word [ecx + 0x12]
add eax, dword [ecx + 0x38]
cmp edx, eax
jb 0x10039f80
cmp edi, dword [esp + 0x24]
jne 0x10039f70
push edi
push 0
push ebx
call fcn.10039af0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
call fcn.10039ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10131d5c
push 0x12e57
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 0
jne 0x10039fd6
lea eax, [esp + 0x14]
shr edx, 3
push eax
push dword [ebx + 0xc]
and edx, 1
mov ecx, esi
push dword [ebx + 8]
call fcn.10035900
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003a49a
mov ebx, dword [esi + 0x74]
cmp dword [ebx + 0x14], 0
jge 0x1003a11f
cmp byte [esi], 1
jbe 0x1003a110
push 0x10131d5c
push 0x12f23
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 0
jne 0x10039fd6
test dl, 2
jne 0x1003a08c
movzx ecx, word [ebx + 0x18]
test cx, cx
je 0x1003a05a
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
mov word [esp + 0x44], cx
mov ecx, esi
push eax
mov byte [esp + 0x4a], 0
mov byte [esp + 0x4e], 0
call fcn.10035ba0
add esp, 4
jmp 0x1003a07a
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov eax, edx
mov edx, dword [ebx]
shr eax, 3
and eax, 1
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.10030f90
add esp, 0x10
test eax, eax
jne 0x1003a49c
cmp dword [esp + 0x14], eax
jne 0x10039fd6
mov ecx, esi
call fcn.10034ef0
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
cmp dword [esi + 0x20], ecx
jne 0x10039fd6
cmp dword [esi + 0x24], eax
jne 0x10039fd6
movzx edi, word [esi + 0x30]
mov edx, dword [esi + 0x28]
mov eax, dword [ebx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x40], eax
lea eax, [edx + edi]
mov dword [esp + 0x50], 0
cmp eax, dword [ecx + 0x3c]
ja 0x10039f80
movzx eax, word [ecx + 0x12]
add eax, dword [ecx + 0x38]
cmp edx, eax
jb 0x10039f80
cmp edi, dword [ebx + 8]
jne 0x1003a0fe
push edi
lea eax, [esp + 0x34]
push 0
push eax
call fcn.10039af0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.10039ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.100322b0
test eax, eax
jne 0x1003a49c
test byte [ebp + 8], 0x80
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x54]
mov dword [esp + 0x24], edx
je 0x1003a1fa
mov edi, dword [eax + 0x58]
mov ecx, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edi
cmp edi, 4
jge 0x1003a158
mov edi, 4
mov dword [esp + 0x18], edi
mov ecx, edi
cmp byte [eax + 0x11], 0
je 0x1003a1af
movzx eax, word [ebx + 0xe]
cmp ecx, eax
jbe 0x1003a1af
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x50]
push edx
push ebx
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x3c], eax
je 0x1003a1af
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push dword [ebx + 4]
push 3
mov edx, dword [eax + edi - 4]
mov eax, dword [esp + 0x28]
bswap edx
mov ecx, dword [eax + 4]
call fcn.10031100
mov edi, dword [esp + 0x2c]
add esp, 0xc
test edi, edi
jne 0x1003a49a
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], 0
movzx eax, word [esi + 0x46]
mov edx, eax
mov dword [esp + 0x2c], edx
jne 0x1003a3c2
movzx eax, word [ebx + 0x18]
cmp edx, eax
jb 0x1003a221
push 0x10131d5c
push 0x12f49
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push dword [esp + 0x2c]
call fcn.10037040
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003a49a
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
jmp 0x1003a1b3
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1003a242
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003a242
cmp dword [edx + 0x68], 0
je 0x1003a271
call fcn.1002b380
jmp 0x1003a267
mov edi, dword [edx + 0x2c]
test edi, edi
jne 0x1003a49a
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003a262
call fcn.1002cdd0
jmp 0x1003a267
call fcn.1002cd40
mov edi, eax
test edi, edi
jne 0x1003a49a
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
cmp byte [ebx + 8], 0
jne 0x1003a29a
mov ecx, dword [esp + 0x24]
mov eax, dword [edi]
mov dword [ecx], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x50]
push edi
push ebx
call eax
mov cx, word [esp + 0x4c]
add esp, 0xc
movzx eax, cx
cmp eax, dword [esp + 0x3c]
je 0x1003a2cf
lea eax, [esp + 0x30]
mov edx, edi
push eax
mov ecx, ebx
call fcn.10036ed0
mov cx, word [esp + 0x44]
add esp, 4
jmp 0x1003a2d1
xor eax, eax
and byte [esi + 1], 0xfb
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x42]
cmp eax, edx
jne 0x1003a398
movzx eax, cx
cmp eax, dword [esp + 0x3c]
jne 0x1003a393
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x1003a310
movzx eax, word [ebx + 0x10]
cmp edx, eax
jge 0x1003a393
mov eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 9]
add eax, 0xa
add eax, ecx
cmp edi, eax
jae 0x1003a34a
push 0x10131d5c
push 0x12f64
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + edx]
cmp eax, dword [ebx + 0x3c]
jbe 0x1003a37c
push 0x10131d5c
push 0x12f67
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push dword [esp + 0x28]
push edi
call fcn.10107750
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x42]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, ebx
call fcn.10037400
mov edi, dword [esp + 0x28]
add esp, 8
test edi, edi
jne 0x1003a49a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
jmp 0x1003a3d7
jge 0x1003a3d7
cmp word [ebx + 0x18], 0
jbe 0x1003a3d7
inc eax
and byte [esi + 1], 0xfd
mov word [esi + 0x46], ax
movzx edx, ax
push 0
push 0
push ecx
push dword [esp + 0x30]
mov ecx, ebx
call fcn.10037520
mov edi, eax
add esp, 0x10
xor eax, eax
mov word [esi + 0x32], ax
cmp byte [ebx + 0xc], al
je 0x1003a49a
and byte [esi + 1], 0xfd
mov ecx, esi
call fcn.10039770
test byte [ebp + 8], 2
mov edi, eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x2c], edi
mov byte [eax + 0xc], 0
mov byte [esi], 1
je 0x1003a49a
test edi, edi
jne 0x1003a49a
mov al, byte [esi + 0x44]
test al, al
js 0x1003a459
jle 0x1003a44a
lea ebx, [esi + 0x78]
nop dword [eax]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
movsx eax, byte [esi + 0x44]
lea ebx, [ebx + 4]
inc edi
cmp edi, eax
jl 0x1003a430
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
mov byte [esi + 0x44], 0xff
cmp dword [esi + 0x70], 0
mov ebx, dword [esp + 0x28]
je 0x1003a48b
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.1001cb50
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1003a47d
lea edi, [eax + 7]
jmp 0x1003a48b
push dword [ebx + 8]
push dword [ebx]
push eax
call fcn.10107750
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov byte [esi], 3
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret