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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [ecx + 0xc]
xor ebx, ebx
mov edi, dword [ecx + 0x30]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x24], edi
mov eax, dword [eax + 0x24]
bswap eax
mov dword [ebp - 0x2c], eax
cmp eax, edi
jb 0x100c8e24
push 0x101efecc
push 0x10dc1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
lea eax, [ebx + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100c94ce
mov eax, dword [ebp + 0x14]
xor dl, dl
cmp byte [ebp + 0x18], 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ebx
jne 0x100c8e65
cmp eax, edi
ja 0x100c8e77
push 0
lea edx, [ebp - 1]
push edx
push eax
push ecx
call fcn.100f8ee0
add esp, 0x10
test eax, eax
jne 0x100c967a
cmp byte [ebp - 1], 2
jne 0x100c8e77
mov byte [ebp - 0x18], 1
jmp 0x100c8e77
cmp byte [ebp + 0x18], 2
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x18], edx
push dword [esi + 0x48]
call fcn.101234b0
add esp, 4
test eax, eax
jne 0x100c967a
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x38]
lea ecx, [edx - 1]
bswap ecx
mov dword [eax + 0x24], ecx
mov edi, ebx
mov dword [ebp - 0xc], edi
test edi, edi
je 0x100c8ea8
mov eax, dword [ebx + 0x38]
mov esi, dword [eax]
jmp 0x100c8eae
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 0x20]
bswap esi
cmp esi, dword [ebp - 0x24]
ja 0x100c9442
mov ecx, dword [ebp - 0x28]
mov eax, ecx
inc ecx
mov dword [ebp - 0x28], ecx
cmp eax, edx
ja 0x100c9442
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
call fcn.100cde20
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x100c9465
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx + 4]
mov ecx, dword [ebp - 0x18]
bswap edi
test edi, edi
jne 0x100c8f3c
test cl, cl
jne 0x100c8f3c
push dword [eax + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c93be
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
mov dword [edi], esi
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x100c92d0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
shr eax, 2
sub eax, 2
cmp edi, eax
ja 0x100c9423
test cl, cl
je 0x100c90f8
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x100c8f70
mov al, byte [ebp + 0x18]
jbe 0x100c90fb
cmp al, 2
jne 0x100c90fb
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x18], 0
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov dword [eax], esi
push dword [esi + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c93c1
test edi, edi
jne 0x100c8fde
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x100c8fb7
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], edi
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
jmp 0x100c92d0
push dword [edi + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c93c4
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 8], ebx
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x100c92d0
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 8]
bswap esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x24]
ja 0x100c939b
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.100cde20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c93be
mov eax, dword [ebp - 0x20]
push dword [eax + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c9345
mov eax, dword [ebp - 8]
lea edx, [edi - 1]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, edx
mov eax, dword [edi + 0x38]
bswap ecx
mov dword [eax + 4], ecx
lea eax, [edx*4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
add eax, 0xc
push eax
mov eax, dword [edi + 0x38]
add eax, 8
push eax
call fcn.1018c580
mov edx, dword [edi + 0x48]
add esp, 0xc
test byte [edx + 0x1c], 0x20
je 0x100c90b1
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 ebx
push ecx
call fcn.1017aa20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x14]
add esp, 0x10
jmp 0x100c90ba
push edx
call fcn.101241e0
add esp, 4
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x100c90d4
mov ecx, dword [ebp - 0x1c]
bswap esi
mov dword [ebp - 8], edi
mov eax, dword [ecx + 0x38]
mov dword [eax + 0x20], esi
jmp 0x100c92d0
push dword [edi + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c9432
mov eax, dword [edi + 0x38]
bswap esi
mov dword [ebp - 8], ebx
mov dword [eax], esi
jmp 0x100c92d0
mov al, byte [ebp + 0x18]
test edi, edi
je 0x100c92d0
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x100c9133
cmp al, 2
jne 0x100c9140
test edi, edi
je 0x100c9133
mov edx, dword [ebp - 0x10]
add edx, 8
nop dword [eax]
mov eax, dword [edx]
bswap eax
cmp eax, esi
jbe 0x100c9138
inc ecx
add edx, 4
cmp ecx, edi
jb 0x100c9120
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x100c91ae
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x100c91ae
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
bswap edx
sub edx, esi
jns 0x100c915d
cmp edx, 0x80000000
jne 0x100c915b
mov edx, SysReAllocString
jmp 0x100c915d
neg edx
mov esi, 1
cmp edi, esi
jbe 0x100c91ab
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [ebx + esi*4 + 8]
bswap eax
sub eax, dword [ebp + 0x14]
jns 0x100c918b
cmp eax, 0x80000000
jne 0x100c9189
mov eax, SysReAllocString
jmp 0x100c918b
neg eax
cmp eax, edx
mov ecx, esi
cmovge ecx, dword [ebp - 0x14]
inc esi
cmp eax, edx
mov dword [ebp - 0x14], ecx
cmovge eax, edx
mov edx, eax
cmp esi, edi
jb 0x100c9170
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 0x14]
lea eax, [eax + ecx*4]
add eax, 8
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
bswap eax
cmp eax, dword [ebp - 0x24]
ja 0x100c9417
cmp byte [ebp - 0x18], 0
je 0x100c91de
cmp eax, esi
je 0x100c91de
jae 0x100c92d0
cmp byte [ebp + 0x18], 2
jne 0x100c92d0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
push dword [esi + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c93c1
lea ecx, [edi - 1]
cmp dword [ebp - 0x14], ecx
jae 0x100c920f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + edi*4 + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x100c923f
cmp esi, dword [eax]
ja 0x100c923b
push esi
push eax
call fcn.10105a20
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x100c923f
xor eax, eax
jmp 0x100c9244
mov eax, 1
mov edi, dword [ebp + 0xc]
push eax
push edi
push esi
push ecx
call fcn.100cde20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c92cc
mov eax, dword [edi]
push dword [eax + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100c92cc
mov edx, dword [edi]
test edx, edx
je 0x100c92c6
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c92bd
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 edi, dword [ebp + 0xc]
add esp, 0x10
jmp 0x100c92c6
push edx
call fcn.101241e0
add esp, 4
mov dword [edi], 0
mov byte [ebp - 0x18], 0
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x100c9328
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c931f
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 0x100c9328
push edx
call fcn.101241e0
add esp, 4
xor edi, edi
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0xc], edi
je 0x100c9432
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
jmp 0x100c8e98
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9390
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 0x100c93be
push edx
call fcn.101241e0
add esp, 4
jmp 0x100c93be
push 0x101efecc
push 0x10e38
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
mov ebx, 0xb
add esp, 0x14
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x100c9465
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9437
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 edi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100c9465
push 0x101efecc
push 0x10e79
jmp 0x100c93a5
push 0x101efecc
push 0x10e16
jmp 0x100c93a5
mov esi, dword [ebp - 8]
jmp 0x100c93c4
push edx
call fcn.101241e0
add esp, 4
jmp 0x100c9465
push 0x101efecc
push 0x10df9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov ebx, 0xb
test edi, edi
je 0x100c9678
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c94bc
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.101241e0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x48]
mov ebx, ecx
xor eax, eax
cmp byte [ebx + 0x13], al
sete al
mov dword [ebp - 0x28], eax
call fcn.101234b0
add esp, 4
test eax, eax
jne 0x100c967a
mov eax, dword [0x1022680c]
xor edx, edx
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov esi, dword [ebx + 0x30]
inc eax
cmp esi, eax
jne 0x100c9507
inc esi
mov dword [ebx + 0x30], esi
cmp byte [ebx + 0x11], 0
mov edi, esi
je 0x100c95cc
push esi
push ebx
call fcn.100f8fe0
add esp, 8
cmp eax, esi
jne 0x100c95cc
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push esi
push ebx
call fcn.100cde20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c9678
mov esi, dword [ebp - 0x2c]
push dword [esi + 0x48]
call fcn.101234b0
mov edx, dword [esi + 0x48]
add esp, 4
mov ebx, eax
test byte [edx + 0x1c], 0x20
je 0x100c959f
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 0x100c95a8
push edx
call fcn.101241e0
add esp, 4
test ebx, ebx
jne 0x100c9678
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, dword [0x1022680c]
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov edi, dword [ebx + 0x30]
inc eax
cmp edi, eax
jne 0x100c95cc
inc edi
mov dword [ebx + 0x30], edi
mov eax, dword [ebx + 0xc]
push dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
bswap edi
mov eax, dword [eax + 0x38]
push esi
mov dword [eax + 0x1c], edi
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
mov dword [eax], ecx
call fcn.100cde20
add esp, 0x10
test eax, eax
jne 0x100c967a
mov eax, dword [esi]
push dword [eax + 0x48]
call fcn.101234b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100c9678
mov edx, dword [esi]
test edx, edx
je 0x100c9672
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c9669
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
mov eax, ebx
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.101241e0
add esp, 4
mov dword [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret