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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], ebx
cmp ecx, dword [ebx + 0x30]
jbe 0x1007e5f2
push 0x10160abc
push 0x11b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov eax, 0xb
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
push 0
push edx
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x1007e982
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x1007e63a
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], edx
dec al
mov dword [esi + 0x34], ebx
and al, 0x64
mov dword [esi + 4], ecx
mov byte [esi + 9], al
push 0
push ecx
push edi
call fcn.100b6c70
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test edi, edi
jne 0x1007e924
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x1007e910
mov edi, dword [ebp + 8]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x1007e687
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x1007e687
push edi
call fcn.1007eea0
mov cl, byte [edi + 9]
add esp, 4
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x1007e6a5
add dword [edi + 0xc], 0xffffffff
jne 0x1007e6a5
push edi
call fcn.100f8650
add esp, 4
cmp dword [ebp + 0xc], ebx
jne 0x1007e71c
lea eax, [ebp - 8]
push eax
push esi
call fcn.1008c680
mov edx, dword [esi + 0x48]
add esp, 8
test byte [edx + 0x1c], 0x20
je 0x1007e6ff
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1007e708
push edx
call fcn.100d4f60
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
je 0x1007e8cf
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e764
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1007e76d
push edx
call fcn.100d4f60
add esp, 4
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push esi
call fcn.1007eb40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e97f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 3
jae 0x1007e7ba
push 0x10160abc
push 0x10516
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp + 0xc], 0xb
jmp 0x1007e7e6
mov edi, dword [ebp + 0xc]
push 0
push edi
push dword [eax + 0x48]
push dword [esi]
call fcn.100d30f0
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1007e7e6
mov eax, dword [ebp - 4]
push eax
mov dword [eax + 4], edi
call fcn.100b29e0
add esp, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e834
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x1007e83d
push edx
call fcn.100d4f60
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1007e981
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.1007eb40
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.1008c680
add esp, 0x18
test esi, esi
je 0x1007e8bf
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e8b6
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x1007e8bf
push edx
call fcn.100d4f60
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
jne 0x1007e97f
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [0x1017c444]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x1007e8f5
push ebx
push ecx
call fcn.100a9d50
add esp, 8
cmp eax, ebx
jne 0x1007e8f8
mov ecx, dword [ebp - 0xc]
dec ebx
jmp 0x1007e8e0
mov edi, dword [ebp + 8]
push ebx
push 4
push edi
call fcn.100b99a0
add esp, 0xc
mov edi, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push esi
push dword [esi + 0x34]
call fcn.1008c6b0
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e976
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 4]
add esp, 0x10
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret