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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x101eff24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], esi
cmp word [edi + 0x18], 0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x50], eax
jne 0x100c8904
push 0x101c584c
push 0x1130a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.100c4b70
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100c8ae3
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x4c]
push edi
call eax
mov edi, dword [ebp - 0x60]
movzx eax, ax
push 0xd
push edi
mov dword [ebp - 0x54], eax
call fcn.10158500
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x4c]
push edi
mov dword [ebp - 0x40], eax
push 1
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], 2
call fcn.100f6580
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x100c8991
test edi, edi
je 0x100c8ae3
jmp 0x100c8a81
mov edx, dword [ebp - 0x50]
movzx eax, word [edi + 0x12]
mov ecx, dword [edx + 0x28]
sub ecx, eax
movzx eax, word [ebp - 0x54]
sub ecx, eax
sub ecx, 2
mov dword [edi + 0x14], ecx
cmp byte [edx + 0x11], 0
je 0x100c89e5
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 5
push dword [ebp - 0x64]
push edx
call fcn.100f5520
mov ax, word [ebp - 0x54]
add esp, 0x14
cmp ax, word [edi + 0x10]
jbe 0x100c89e2
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push edi
push edi
call fcn.100f5650
add esp, 0x10
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
movzx ecx, word [edx + 0x18]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov dword [ebp - 0x4c], ecx
lea eax, [ecx + 9]
mov edx, eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
mov dword [ebp - 0x4c], ecx
test al, al
jns 0x100c8a1e
cmp ecx, edx
jb 0x100c8a10
mov edx, dword [ebp - 0x58]
lea eax, [ecx + 9]
mov dword [ebp - 0x50], eax
mov edi, eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
mov dword [ebp - 0x4c], ecx
test al, al
jns 0x100c8a41
cmp ecx, edi
jb 0x100c8a30
mov edi, dword [ebp - 0x60]
test ebx, ebx
jne 0x100c8a6e
lea eax, [ebp - 0x48]
push eax
push dword [edx + 4]
mov eax, dword [ebp - 0x68]
sub esi, eax
push 0
push esi
mov esi, dword [ebp - 0x5c]
push eax
movzx eax, word [esi + 0x18]
push eax
push esi
call fcn.100ea0c0
mov ebx, dword [ebp - 0x48]
add esp, 0x1c
jmp 0x100c8a71
mov esi, dword [ebp - 0x5c]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x64]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c8ada
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret
push edx
call fcn.10120f40
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10158d02
mov esp, ebp
pop ebp
ret