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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0xc], ebx
cmp eax, 2
jb 0x1008ca01
cmp eax, dword [edi + 0x30]
ja 0x1008ca01
test esi, esi
je 0x1008c6fb
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
jmp 0x1008c707
push eax
push edi
call fcn.1007f5e0
add esp, 8
mov esi, eax
push dword [ebx + 0x48]
mov dword [ebp + 8], esi
call fcn.100d4230
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x1008c93c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
mov dword [ebp - 0x14], eax
inc eax
bswap eax
mov dword [ecx + 0x24], eax
test byte [edi + 0x18], 4
je 0x1008c788
test esi, esi
jne 0x1008c75e
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
call fcn.1007eb40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1008c98b
mov esi, dword [ebp + 8]
push dword [esi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x1008c93c
mov eax, dword [esi + 0x34]
push dword [eax + 0x24]
push ebx
push dword [esi + 0x38]
call fcn.10117810
add esp, 0xc
cmp byte [edi + 0x11], 0
je 0x1008c7ad
lea eax, [ebp - 8]
push eax
push 0
push 2
push dword [ebp + 0x10]
push edi
call fcn.100a9da0
mov ebx, dword [ebp - 8]
add esp, 0x14
test ebx, ebx
jne 0x1008c93c
cmp dword [ebp - 0x14], 0
je 0x1008c8eb
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x20]
bswap eax
push eax
push edi
mov dword [ebp - 0x10], eax
call fcn.1007eb40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1008c93c
mov ecx, dword [ebp - 4]
mov ebx, dword [edi + 0x28]
shr ebx, 2
mov eax, dword [ecx + 0x38]
mov edx, dword [eax + 4]
lea eax, [ebx - 2]
bswap edx
mov dword [ebp - 0x14], edx
cmp edx, eax
jbe 0x1008c822
push 0x10160abc
push 0x10f2e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov ebx, 0xb
jmp 0x1008c93c
lea eax, [ebx - 8]
cmp edx, eax
jae 0x1008c8eb
push dword [ecx + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008c93c
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
lea ecx, [ebx + 1]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp + 0x10]
bswap ecx
mov dword [eax + ebx*4 + 8], ecx
test esi, esi
je 0x1008c88f
test byte [edi + 0x18], 4
jne 0x1008c88f
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 0x14]
cmp byte [edx + 0xc], 0
jne 0x1008c88f
movzx eax, word [ecx + 0x1c]
test al, 2
je 0x1008c88f
cmp dword [edx + 0x60], 0
jne 0x1008c88f
and eax, 0xfffb
or eax, 0x10
mov word [ecx + 0x1c], ax
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
jne 0x1008c8d6
mov eax, dword [edi + 0x30]
push ebx
push 0x200
mov dword [ebp - 0x14], eax
call fcn.100d1bf0
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1008c8ca
push 0x200
push ebx
push eax
call fcn.10117810
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [edi + 0x40], eax
test eax, eax
jne 0x1008c8d6
lea ebx, [eax + 7]
jmp 0x1008c93c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
ja 0x1008c93c
push ecx
push eax
call fcn.100b65f0
add esp, 8
mov ebx, eax
jmp 0x1008c93c
test esi, esi
jne 0x1008c90d
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
call fcn.1007eb40
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1008c98b
mov esi, dword [ebp + 8]
push dword [esi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008c93c
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x10]
bswap ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x10]
bswap ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x20], ecx
test esi, esi
je 0x1008c999
mov byte [esi], 0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1008c990
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 0x1008c999
mov esi, dword [ebp + 8]
jmp 0x1008c93c
push edx
call fcn.100d4f60
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x1008c9f8
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1008c9ef
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10160abc
push 0x10ef8
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 esi
pop ebx
mov esp, ebp
pop ebp
ret