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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x28], esi
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], ebx
cmp byte [ebx + 0x11], 0
je 0x100fc471
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x100fc12e
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100fc120
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x100fc148
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100fc148
mov ecx, esi
call fcn.100f22f0
mov cl, byte [esi + 9]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + 0x34]
bswap edi
test cl, cl
je 0x100fc164
add dword [esi + 0xc], 0xffffffff
jne 0x100fc164
mov ecx, esi
call fcn.100f22b0
lea esi, [edi + 1]
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x100fc176
xor ecx, ecx
jmp 0x100fc1aa
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x1029d2a4]
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 [esp + 0x14]
cmp edi, ecx
je 0x100fc164
mov eax, dword [0x1029d2a4]
xor edx, edx
div dword [ebx + 0x24]
inc eax
cmp edi, eax
je 0x100fc164
push 1
lea eax, [esp + 0x24]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x1c]
call fcn.100f7d10
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x100fc272
cmp dword [esp + 0x20], edi
je 0x100fc409
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100fc20d
push eax
xor edx, edx
call fcn.100f26e0
add esp, 4
mov ebx, eax
jmp 0x100fc20f
xor ebx, ebx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100fc26e
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fc267
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
mov edi, dword [esp + 0x18]
jmp 0x100fc26e
mov ecx, edx
call fcn.100e8b70
test ebx, ebx
je 0x100fc27b
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov edx, esi
push 0
push eax
mov ecx, edi
call fcn.100f3cc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100fc272
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.100f2a60
mov ebx, eax
add esp, 8
mov al, byte [esp + 0x1c]
cmp al, 1
je 0x100fc387
cmp al, 2
je 0x100fc387
test ebx, ebx
jne 0x100fc3aa
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.100f5900
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100fc344
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fc33d
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
mov edi, dword [esp + 0x18]
jmp 0x100fc344
mov ecx, edx
call fcn.100e8b70
test ebx, ebx
jne 0x100fc272
lea eax, [esp + 0x10]
mov edx, esi
push ebx
push eax
mov ecx, edi
call fcn.100f3cc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100fc272
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
call fcn.100eea50
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x100fc40d
mov edx, dword [edi + 0x48]
jmp 0x100fc3b9
push 0x10279dac
push 0x11978
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100e2740
add esp, 0x14
mov ebx, 0xb
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100fc272
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100fc461
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
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 1
mov edx, esi
call fcn.100f2920
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x100fc439
test edi, edi
je 0x100fc272
mov edx, dword [edi + 0x48]
jmp 0x100fc3b9
mov ecx, dword [esp + 0x28]
mov edx, 4
push esi
call fcn.100fcd00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100fc49a
test edi, edi
je 0x100fc272
mov edx, dword [edi + 0x48]
jmp 0x100fc3b9
mov ecx, edx
call fcn.100e8b70
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push 1
push eax
lea edx, [esp + 0x1c]
call fcn.100f7d10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x100fc272
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, edi
cmove edx, eax
call fcn.100f3bf0
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x100fc4be
call fcn.100ee290
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret