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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 4]
mov dword [ebp - 0xc], ebx
cmp byte [ebx + 0x11], 0
je 0x1007e54c
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x1007e213
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1007e205
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x1007e22f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1007e22f
push esi
call fcn.1007eea0
mov cl, byte [esi + 9]
add esp, 4
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + 0x34]
bswap edi
test cl, cl
je 0x1007e24d
add dword [esi + 0xc], 0xffffffff
jne 0x1007e24d
push esi
call fcn.100f8650
add esp, 4
lea esi, [edi + 1]
mov ecx, esi
mov dword [ebp - 0x10], ecx
mov eax, esi
mov dword [ebp - 8], esi
mov edi, esi
cmp eax, 2
jae 0x1007e265
xor ecx, ecx
jmp 0x1007e29b
mov eax, 0xcccccccd
mov edi, dword [ebp - 0x10]
mul dword [ebx + 0x28]
lea esi, [ecx - 2]
mov ecx, edx
mov eax, esi
shr ecx, 2
xor edx, edx
inc ecx
div ecx
mov eax, dword [0x1017c444]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x24]
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [ebp - 8]
cmp edi, ecx
je 0x1007e2ae
mov eax, dword [0x1017c444]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
jne 0x1007e2b8
lea esi, [edi + 1]
mov ecx, esi
mov dword [ebp - 0x10], esi
jmp 0x1007e255
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.10079b50
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x1007e365
cmp dword [ebp - 0x14], edi
je 0x1007e4eb
mov edi, dword [ebp - 0xc]
mov byte [ebp - 0x10], al
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x1007e301
push ebx
push ebx
push eax
call fcn.100b0d40
add esp, 0xc
mov ebx, eax
jmp 0x1007e303
xor ebx, ebx
mov edx, dword [ebp - 4]
test edx, edx
je 0x1007e361
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e358
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 - 8]
add esp, 0x10
mov edi, dword [ebp - 0xc]
jmp 0x1007e361
push edx
call fcn.100d4f60
add esp, 4
test ebx, ebx
je 0x1007e36e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.1007eb40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1007e365
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.100a9c50
mov ebx, eax
add esp, 0x10
mov al, byte [ebp - 0x10]
cmp al, 1
je 0x1007e46a
cmp al, 2
je 0x1007e46a
test ebx, ebx
jne 0x1007e48d
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 4]
push edi
call fcn.100ab520
mov ebx, eax
add esp, 0x18
mov eax, dword [ebp - 4]
test eax, eax
je 0x1007e429
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e420
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 - 8]
add esp, 0x10
mov edi, dword [ebp - 0xc]
jmp 0x1007e429
push edx
call fcn.100d4f60
add esp, 4
test ebx, ebx
jne 0x1007e365
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.1007eb40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1007e365
mov edi, dword [ebp - 4]
push dword [edi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x1007e4ee
mov edx, dword [edi + 0x48]
jmp 0x1007e49b
push 0x10160abc
push 0x11a3e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov ebx, 0xb
mov edx, dword [ebp - 4]
test edx, edx
je 0x1007e365
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007e53a
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
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push esi
push dword [ebp - 0xc]
call fcn.100a9da0
mov ebx, dword [ebp - 0x10]
add esp, 0x14
test ebx, ebx
je 0x1007e516
test edi, edi
je 0x1007e365
mov edx, dword [edi + 0x48]
jmp 0x1007e49b
push esi
push 4
push dword [ebp + 8]
call fcn.100b99a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1007e571
test edi, edi
je 0x1007e365
mov edx, dword [edi + 0x48]
jmp 0x1007e49b
push edx
call fcn.100d4f60
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.10079b50
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1007e365
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
test byte [ebp + 0x10], 1
mov ecx, 0xa
mov eax, 0xd
cmove eax, ecx
push eax
push edi
call fcn.1010bd70
mov eax, dword [edi + 0x48]
add esp, 8
test eax, eax
je 0x1007e59c
push eax
call fcn.100d41a0
add esp, 4
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret