Function at 0x100c9690
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 0x100c96d2
push 0x101c584c
push 0x11b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
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 0x100c9a62
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x100c971a
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.101026b0
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test edi, edi
jne 0x100c9a04
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x100c99f0
mov edi, dword [ebp + 8]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x100c9767
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100c9767
push edi
call fcn.100c9fa0
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 0x100c9785
add dword [edi + 0xc], 0xffffffff
jne 0x100c9785
push edi
call fcn.10144ad0
add esp, 4
cmp dword [ebp + 0xc], ebx
jne 0x100c97fc
lea eax, [ebp - 8]
push eax
push esi
call fcn.100d7960
mov edx, dword [esi + 0x48]
add esp, 8
test byte [edx + 0x1c], 0x20
je 0x100c97df
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100c97e8
push edx
call fcn.10120f40
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
je 0x100c99af
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 0x100c9844
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100c984d
push edx
call fcn.10120f40
add esp, 4
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push esi
call fcn.100c9c30
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100c9a5f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 3
jae 0x100c989a
push 0x101c584c
push 0x10516
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp + 0xc], 0xb
jmp 0x100c98c6
mov edi, dword [ebp + 0xc]
push 0
push edi
push dword [eax + 0x48]
push dword [esi]
call fcn.1011f090
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x100c98c6
mov eax, dword [ebp - 4]
push eax
mov dword [eax + 4], edi
call fcn.100fe340
add esp, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9914
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100c991d
push edx
call fcn.10120f40
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100c9a61
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.100c9c30
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.100d7960
add esp, 0x18
test esi, esi
je 0x100c999f
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9996
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100c999f
push edx
call fcn.10120f40
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
jne 0x100c9a5f
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [0x101eb1a4]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x100c99d5
push ebx
push ecx
call fcn.100f54d0
add esp, 8
cmp eax, ebx
jne 0x100c99d8
mov ecx, dword [ebp - 0xc]
dec ebx
jmp 0x100c99c0
mov edi, dword [ebp + 8]
push ebx
push 4
push edi
call fcn.101054e0
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.100d7990
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9a56
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.10158ec0
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.10120f40
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret