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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
cmp ebx, 2
jae 0x1009e748
xor ecx, ecx
jmp 0x1009e778
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x1017c444]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [edi + 0x24]
dec eax
cmp esi, eax
sete cl
add ecx, 2
add ecx, esi
mov esi, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1009ea43
mov eax, dword [0x1017c444]
xor edx, edx
div dword [edi + 0x24]
inc eax
cmp ebx, eax
je 0x1009ea43
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
bswap eax
test eax, eax
jne 0x1009e7b1
pop edi
pop esi
mov eax, 0x65
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.100a9c50
add esp, 0x10
test eax, eax
jne 0x1009ea9e
mov eax, dword [ebp - 4]
cmp al, 1
jne 0x1009e7fc
push 0x10160abc
push 0x10578
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
cmp al, 2
jne 0x1009e88c
test esi, esi
jne 0x1009ea9c
push 1
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
push edi
call fcn.10079b50
add esp, 0x14
test eax, eax
jne 0x1009ea9e
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1009ea47
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1009e87e
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 0x1009ea47
push edx
call fcn.100d4f60
add esp, 4
jmp 0x1009ea47
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push edi
call fcn.1007eb40
add esp, 0x10
test eax, eax
jne 0x1009ea9e
mov ecx, dword [ebp + 0xc]
test esi, esi
setne dl
cmovne ecx, eax
dec dl
mov dword [ebp - 0x10], ecx
and dl, 2
mov dword [ebp - 0x14], edx
nop word [eax + eax]
push edx
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.10079b50
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1009e9d8
mov edx, dword [ebp - 8]
test edx, edx
je 0x1009e93b
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1009e932
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 edi, dword [ebp + 8]
add esp, 0x10
jmp 0x1009e93b
push edx
call fcn.100d4f60
add esp, 4
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
test esi, esi
je 0x1009e954
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
ja 0x1009e8c0
push esi
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
call fcn.100ab520
mov edi, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x1009e9cb
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1009e9c2
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 + 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x18]
jmp 0x1009e9cb
push edx
call fcn.100d4f60
add esp, 4
test edi, edi
je 0x1009ea43
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1009ea3a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1009ea31
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 - 0x1c]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1009ea9c
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [0x1017c444]
div dword [edi + 0x24]
inc eax
mov dword [ebp + 0x10], eax
dec ebx
cmp ebx, eax
je 0x1009ea58
cmp ebx, 2
jae 0x1009ea66
xor eax, eax
jmp 0x1009ea8e
mov eax, 0xcccccccd
lea esi, [ebx - 2]
mul dword [edi + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
sub esi, edx
lea eax, [esi + 2]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
add eax, 3
add eax, esi
cmp eax, ebx
mov eax, dword [ebp + 0x10]
je 0x1009ea58
mov byte [edi + 0x13], 1
mov dword [edi + 0x30], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret