Function at 0x100c4b70
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 0x100c4bc4
push 0x101c584c
push 0x10dc1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
lea eax, [ebx + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100c526e
mov eax, dword [ebp + 0x14]
xor dl, dl
cmp byte [ebp + 0x18], 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ebx
jne 0x100c4c05
cmp eax, edi
ja 0x100c4c17
push 0
lea edx, [ebp - 1]
push edx
push eax
push ecx
call fcn.100f53c0
add esp, 0x10
test eax, eax
jne 0x100c541a
cmp byte [ebp - 1], 2
jne 0x100c4c17
mov byte [ebp - 0x18], 1
jmp 0x100c4c17
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.101201f0
add esp, 4
test eax, eax
jne 0x100c541a
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 0x100c4c48
mov eax, dword [ebx + 0x38]
mov esi, dword [eax]
jmp 0x100c4c4e
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 0x20]
bswap esi
cmp esi, dword [ebp - 0x24]
ja 0x100c51e2
mov ecx, dword [ebp - 0x28]
mov eax, ecx
inc ecx
mov dword [ebp - 0x28], ecx
cmp eax, edx
ja 0x100c51e2
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
call fcn.100c9c90
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x100c5205
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 0x100c4cdc
test cl, cl
jne 0x100c4cdc
push dword [eax + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c515e
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 0x100c5070
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
shr eax, 2
sub eax, 2
cmp edi, eax
ja 0x100c51c3
test cl, cl
je 0x100c4e98
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x100c4d10
mov al, byte [ebp + 0x18]
jbe 0x100c4e9b
cmp al, 2
jne 0x100c4e9b
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.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c5161
test edi, edi
jne 0x100c4d7e
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x100c4d57
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 0x100c5070
push dword [edi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c5164
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 8], ebx
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x100c5070
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 8]
bswap esi
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x24]
ja 0x100c513b
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.100c9c90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c515e
mov eax, dword [ebp - 0x20]
push dword [eax + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c50e5
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.1016a0c0
mov edx, dword [edi + 0x48]
add esp, 0xc
test byte [edx + 0x1c], 0x20
je 0x100c4e51
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp - 0x14]
add esp, 0x10
jmp 0x100c4e5a
push edx
call fcn.10120f40
add esp, 4
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x100c4e74
mov ecx, dword [ebp - 0x1c]
bswap esi
mov dword [ebp - 8], edi
mov eax, dword [ecx + 0x38]
mov dword [eax + 0x20], esi
jmp 0x100c5070
push dword [edi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c51d2
mov eax, dword [edi + 0x38]
bswap esi
mov dword [ebp - 8], ebx
mov dword [eax], esi
jmp 0x100c5070
mov al, byte [ebp + 0x18]
test edi, edi
je 0x100c5070
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x100c4ed3
cmp al, 2
jne 0x100c4ee0
test edi, edi
je 0x100c4ed3
mov edx, dword [ebp - 0x10]
add edx, 8
nop dword [eax]
mov eax, dword [edx]
bswap eax
cmp eax, esi
jbe 0x100c4ed8
inc ecx
add edx, 4
cmp ecx, edi
jb 0x100c4ec0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
jmp 0x100c4f4e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x100c4f4e
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
bswap edx
sub edx, esi
jns 0x100c4efd
cmp edx, 0x80000000
jne 0x100c4efb
mov edx, SysReAllocString
jmp 0x100c4efd
neg edx
mov esi, 1
cmp edi, esi
jbe 0x100c4f4b
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [ebx + esi*4 + 8]
bswap eax
sub eax, dword [ebp + 0x14]
jns 0x100c4f2b
cmp eax, 0x80000000
jne 0x100c4f29
mov eax, SysReAllocString
jmp 0x100c4f2b
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 0x100c4f10
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 0x100c51b7
cmp byte [ebp - 0x18], 0
je 0x100c4f7e
cmp eax, esi
je 0x100c4f7e
jae 0x100c5070
cmp byte [ebp + 0x18], 2
jne 0x100c5070
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
push dword [esi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100c5161
lea ecx, [edi - 1]
cmp dword [ebp - 0x14], ecx
jae 0x100c4faf
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 0x100c4fdf
cmp esi, dword [eax]
ja 0x100c4fdb
push esi
push eax
call fcn.101021d0
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x100c4fdf
xor eax, eax
jmp 0x100c4fe4
mov eax, 1
mov edi, dword [ebp + 0xc]
push eax
push edi
push esi
push ecx
call fcn.100c9c90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c506c
mov eax, dword [edi]
push dword [eax + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100c506c
mov edx, dword [edi]
test edx, edx
je 0x100c5066
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c505d
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 edi, dword [ebp + 0xc]
add esp, 0x10
jmp 0x100c5066
push edx
call fcn.10120f40
add esp, 4
mov dword [edi], 0
mov byte [ebp - 0x18], 0
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x100c50c8
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c50bf
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 0x100c50c8
push edx
call fcn.10120f40
add esp, 4
xor edi, edi
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0xc], edi
je 0x100c51d2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
jmp 0x100c4c38
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c5130
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 0x100c515e
push edx
call fcn.10120f40
add esp, 4
jmp 0x100c515e
push 0x101c584c
push 0x10e38
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
mov ebx, 0xb
add esp, 0x14
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
test esi, esi
je 0x100c5205
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c51d7
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 edi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100c5205
push 0x101c584c
push 0x10e79
jmp 0x100c5145
push 0x101c584c
push 0x10e16
jmp 0x100c5145
mov esi, dword [ebp - 8]
jmp 0x100c5164
push edx
call fcn.10120f40
add esp, 4
jmp 0x100c5205
push 0x101c584c
push 0x10df9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov ebx, 0xb
test edi, edi
je 0x100c5418
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c525c
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
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.10120f40
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.101201f0
add esp, 4
test eax, eax
jne 0x100c541a
mov eax, dword [0x101eb1a4]
xor edx, edx
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov esi, dword [ebx + 0x30]
inc eax
cmp esi, eax
jne 0x100c52a7
inc esi
mov dword [ebx + 0x30], esi
cmp byte [ebx + 0x11], 0
mov edi, esi
je 0x100c536c
push esi
push ebx
call fcn.100f54d0
add esp, 8
cmp eax, esi
jne 0x100c536c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push esi
push ebx
call fcn.100c9c90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100c5418
mov esi, dword [ebp - 0x2c]
push dword [esi + 0x48]
call fcn.101201f0
mov edx, dword [esi + 0x48]
add esp, 4
mov ebx, eax
test byte [edx + 0x1c], 0x20
je 0x100c533f
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 0x100c5348
push edx
call fcn.10120f40
add esp, 4
test ebx, ebx
jne 0x100c5418
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, dword [0x101eb1a4]
div dword [ebx + 0x24]
inc dword [ebx + 0x30]
mov edi, dword [ebx + 0x30]
inc eax
cmp edi, eax
jne 0x100c536c
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.100c9c90
add esp, 0x10
test eax, eax
jne 0x100c541a
mov eax, dword [esi]
push dword [eax + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100c5418
mov edx, dword [esi]
test edx, edx
je 0x100c5412
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c5409
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
mov eax, ebx
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.10120f40
add esp, 4
mov dword [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret