Function at 0x100c92c0
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 0x100c962c
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x100c92f3
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100c92e5
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x100c930f
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100c930f
push esi
call fcn.100c9fa0
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 0x100c932d
add dword [esi + 0xc], 0xffffffff
jne 0x100c932d
push esi
call fcn.10144ad0
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 0x100c9345
xor ecx, ecx
jmp 0x100c937b
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 [0x101eb1a4]
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 0x100c938e
mov eax, dword [0x101eb1a4]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
jne 0x100c9398
lea esi, [edi + 1]
mov ecx, esi
mov dword [ebp - 0x10], esi
jmp 0x100c9335
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.100c4b70
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x100c9445
cmp dword [ebp - 0x14], edi
je 0x100c95cb
mov edi, dword [ebp - 0xc]
mov byte [ebp - 0x10], al
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x100c93e1
push ebx
push ebx
push eax
call fcn.100fc660
add esp, 0xc
mov ebx, eax
jmp 0x100c93e3
xor ebx, ebx
mov edx, dword [ebp - 4]
test edx, edx
je 0x100c9441
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9438
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 - 8]
add esp, 0x10
mov edi, dword [ebp - 0xc]
jmp 0x100c9441
push edx
call fcn.10120f40
add esp, 4
test ebx, ebx
je 0x100c944e
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.100c9c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c9445
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.100f53c0
mov ebx, eax
add esp, 0x10
mov al, byte [ebp - 0x10]
cmp al, 1
je 0x100c954a
cmp al, 2
je 0x100c954a
test ebx, ebx
jne 0x100c956d
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 4]
push edi
call fcn.100f6d00
mov ebx, eax
add esp, 0x18
mov eax, dword [ebp - 4]
test eax, eax
je 0x100c9509
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9500
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 - 8]
add esp, 0x10
mov edi, dword [ebp - 0xc]
jmp 0x100c9509
push edx
call fcn.10120f40
add esp, 4
test ebx, ebx
jne 0x100c9445
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.100c9c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c9445
mov edi, dword [ebp - 4]
push dword [edi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100c95ce
mov edx, dword [edi + 0x48]
jmp 0x100c957b
push 0x101c584c
push 0x11a3e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov ebx, 0xb
mov edx, dword [ebp - 4]
test edx, edx
je 0x100c9445
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c961a
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
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.100f5520
mov ebx, dword [ebp - 0x10]
add esp, 0x14
test ebx, ebx
je 0x100c95f6
test edi, edi
je 0x100c9445
mov edx, dword [edi + 0x48]
jmp 0x100c957b
push esi
push 4
push dword [ebp + 8]
call fcn.101054e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100c9651
test edi, edi
je 0x100c9445
mov edx, dword [edi + 0x48]
jmp 0x100c957b
push edx
call fcn.10120f40
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.100c4b70
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100c9445
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.10158500
mov eax, dword [edi + 0x48]
add esp, 8
test eax, eax
je 0x100c967c
push eax
call fcn.10120150
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