Function at 0x100cd830
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 0x100cd872
push 0x101efecc
push 0x11b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
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 0x100cdc02
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x100cd8ba
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.10105f00
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test edi, edi
jne 0x100cdba4
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
cmp byte [ebx + 0x11], 0
je 0x100cdb90
mov edi, dword [ebp + 8]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x100cd907
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x100cd907
push edi
call fcn.100ce120
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 0x100cd925
add dword [edi + 0xc], 0xffffffff
jne 0x100cd925
push edi
call fcn.101478d0
add esp, 4
cmp dword [ebp + 0xc], ebx
jne 0x100cd99c
lea eax, [ebp - 8]
push eax
push esi
call fcn.100db900
mov edx, dword [esi + 0x48]
add esp, 8
test byte [edx + 0x1c], 0x20
je 0x100cd97f
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
add esp, 0x10
jmp 0x100cd988
push edx
call fcn.101241e0
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
je 0x100cdb4f
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 0x100cd9e4
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
add esp, 0x10
jmp 0x100cd9ed
push edx
call fcn.101241e0
add esp, 4
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push esi
call fcn.100cddc0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100cdbff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 3
jae 0x100cda3a
push 0x101efecc
push 0x10516
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp + 0xc], 0xb
jmp 0x100cda66
mov edi, dword [ebp + 0xc]
push 0
push edi
push dword [eax + 0x48]
push dword [esi]
call fcn.10122370
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x100cda66
mov eax, dword [ebp - 4]
push eax
mov dword [eax + 4], edi
call fcn.10101c70
add esp, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cdab4
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 - 0xc]
add esp, 0x10
jmp 0x100cdabd
push edx
call fcn.101241e0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100cdc01
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
call fcn.100cddc0
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.100db900
add esp, 0x18
test esi, esi
je 0x100cdb3f
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cdb36
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
add esp, 0x10
jmp 0x100cdb3f
push edx
call fcn.101241e0
add esp, 4
mov edi, dword [ebp - 8]
test edi, edi
jne 0x100cdbff
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [0x1022680c]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x100cdb75
push ebx
push ecx
call fcn.100f8fe0
add esp, 8
cmp eax, ebx
jne 0x100cdb78
mov ecx, dword [ebp - 0xc]
dec ebx
jmp 0x100cdb60
mov edi, dword [ebp + 8]
push ebx
push 4
push edi
call fcn.10108c30
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.100db930
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cdbf6
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
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.101241e0
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret