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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
push esi
push edi
push 0
mov edi, dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x1c], edx
mov eax, dword [edi]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x100fcc31
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x100fc8a9
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], edi
and al, 0x64
mov dword [esi + 4], ecx
mov byte [esi + 9], al
mov edx, ecx
mov ecx, ebx
push 0
call fcn.100fc750
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
jne 0x100fcbca
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x11], 0
je 0x100fcbb4
mov cl, byte [ebx + 9]
mov edi, dword [ebx + 4]
test cl, cl
je 0x100fc8f6
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x100fc8f6
mov ecx, ebx
call fcn.100f22f0
mov cl, byte [ebx + 9]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x100fc916
mov eax, dword [esp + 0x1c]
add dword [eax + 0xc], 0xffffffff
jne 0x100fc916
mov ecx, eax
call fcn.100f22b0
cmp dword [esp + 0x10], ebx
jne 0x100fc9a5
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.100f85f0
mov edx, dword [esi + 0x48]
add esp, 4
mov edi, eax
mov dword [esp + 0xc], edi
test byte [edx + 0x1c], 0x20
je 0x100fc982
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.101d5d50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x1c]
add esp, 0x10
jmp 0x100fc989
mov ecx, edx
call fcn.100e8b70
test edi, edi
je 0x100fcb66
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fc9ed
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.101d5d50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100fc9f4
mov ecx, edx
call fcn.100e8b70
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.100f3cc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100fcc2f
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 3
jae 0x100fca47
push 0x10279dac
push 0x10468
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100e2740
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x100fca75
mov edi, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
mov ecx, dword [esi]
push 0
push edi
call fcn.100ef070
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100fca75
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [eax + 4], edi
call fcn.100f5660
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fcac5
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.101d5d50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
jmp 0x100fcacc
mov ecx, edx
call fcn.100e8b70
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100fcc31
push eax
mov dword [esp + 0x10], eax
mov edx, ebx
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.100f3cc0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
add esp, 8
mov dword [esp + 0x10], eax
mov ecx, esi
call fcn.100f89c0
test esi, esi
je 0x100fcb54
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fcb4d
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.101d5d50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100fcb54
mov ecx, edx
call fcn.100e8b70
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x100fcc2f
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [0x1029d2a4]
dec ebx
div dword [ecx + 0x24]
lea esi, [eax + 1]
cmp ebx, esi
je 0x100fcb8b
mov edx, ebx
call fcn.100f28e0
cmp eax, ebx
jne 0x100fcb8e
mov ecx, dword [esp + 0x14]
dec ebx
jmp 0x100fcb78
mov ecx, dword [esp + 0x1c]
mov edx, 4
push ebx
call fcn.100fcd00
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.100f85f0
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fcc28
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.101d5d50
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.100e8b70
mov eax, edi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret