Function at 0x100cd460
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 0x100cd7cc
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x100cd493
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100cd485
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x100cd4af
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100cd4af
push esi
call fcn.100ce120
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 0x100cd4cd
add dword [esi + 0xc], 0xffffffff
jne 0x100cd4cd
push esi
call fcn.101478d0
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 0x100cd4e5
xor ecx, ecx
jmp 0x100cd51b
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 [0x1022680c]
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 0x100cd52e
mov eax, dword [0x1022680c]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
jne 0x100cd538
lea esi, [edi + 1]
mov ecx, esi
mov dword [ebp - 0x10], esi
jmp 0x100cd4d5
push 1
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.100c8dd0
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x100cd5e5
cmp dword [ebp - 0x14], edi
je 0x100cd76b
mov edi, dword [ebp - 0xc]
mov byte [ebp - 0x10], al
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x100cd581
push ebx
push ebx
push eax
call fcn.100fffd0
add esp, 0xc
mov ebx, eax
jmp 0x100cd583
xor ebx, ebx
mov edx, dword [ebp - 4]
test edx, edx
je 0x100cd5e1
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cd5d8
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.1017aa20
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 0x100cd5e1
push edx
call fcn.101241e0
add esp, 4
test ebx, ebx
je 0x100cd5ee
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.100cddc0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cd5e5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.100f8ee0
mov ebx, eax
add esp, 0x10
mov al, byte [ebp - 0x10]
cmp al, 1
je 0x100cd6ea
cmp al, 2
je 0x100cd6ea
test ebx, ebx
jne 0x100cd70d
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 4]
push edi
call fcn.100fa7b0
mov ebx, eax
add esp, 0x18
mov eax, dword [ebp - 4]
test eax, eax
je 0x100cd6a9
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cd6a0
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.1017aa20
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 0x100cd6a9
push edx
call fcn.101241e0
add esp, 4
test ebx, ebx
jne 0x100cd5e5
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.100cddc0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100cd5e5
mov edi, dword [ebp - 4]
push dword [edi + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100cd76e
mov edx, dword [edi + 0x48]
jmp 0x100cd71b
push 0x101efecc
push 0x11a3e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov ebx, 0xb
mov edx, dword [ebp - 4]
test edx, edx
je 0x100cd5e5
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cd7ba
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.1017aa20
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.100f9030
mov ebx, dword [ebp - 0x10]
add esp, 0x14
test ebx, ebx
je 0x100cd796
test edi, edi
je 0x100cd5e5
mov edx, dword [edi + 0x48]
jmp 0x100cd71b
push esi
push 4
push dword [ebp + 8]
call fcn.10108c30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100cd7f1
test edi, edi
je 0x100cd5e5
mov edx, dword [edi + 0x48]
jmp 0x100cd71b
push edx
call fcn.101241e0
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.100c8dd0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100cd5e5
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.1015b000
mov eax, dword [edi + 0x48]
add esp, 8
test eax, eax
je 0x100cd81c
push eax
call fcn.10123420
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