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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10100008]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, eax
mov dword [esp + 0xc], edi
and edx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
cmp edi, 1
je 0x10011f97
cmp byte [ebx + 0x74], 0
je 0x10011f97
cmp byte [ebx + 0x10], 1
je 0x10011f8d
test al, 2
je 0x10011f97
mov dword [esp + 0x2c], 1
jmp 0x10011f9b
mov dword [esp + 0x2c], esi
test edi, edi
jne 0x10011fcd
push 0x100f686c
push 0xb450
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10011fdb
mov esi, eax
jmp 0x100122da
cmp dword [esp + 0x2c], esi
je 0x100121a9
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x10012012
lea eax, [esp + 0x1c]
mov edx, edi
push eax
call fcn.100155c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10012459
cmp dword [esp + 0x1c], eax
jne 0x100121a9
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x30]
mov esi, dword [ebx + 0x3c]
lea ecx, [edi - 1]
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [esp + 0x44], 0
mov edi, dword [esi]
push eax
mov dword [esp + 0x30], ecx
call fcn.100dfbb0
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10012459
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x100121a9
cmp byte [ebx + 0x10], 1
jbe 0x100120be
mov edx, edi
mov ecx, ebx
call fcn.10012480
mov dword [esp + 0x28], eax
test eax, eax
je 0x100120b6
push dword [esp + 0x30]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x20]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.100dfbb0
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 + 0xc]
jmp 0x1001217f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x28], esi
test esi, esi
je 0x100120f3
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x88], eax
mov dword [esi + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [esi + 8]
call fcn.100c1600
add esp, 0xc
jmp 0x10012170
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x14], eax
adc edx, 0
push edx
push eax
call fcn.10004a20
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
je 0x1001212c
push dword [esp + 0x14]
push 0
push esi
call fcn.100c1600
add esp, 0xc
test esi, esi
jne 0x10012160
mov eax, dword [esp + 0x24]
mov esi, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x98]
push 0
push dword [esp + 0x20]
mov edi, dword [esi]
cdq
push edx
push eax
call fcn.100dfbb0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov esi, 7
jmp 0x1001217f
lea eax, [esi + 0x28]
mov dword [esi + 0x18], 0x10040
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor esi, esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100121a1
mov edi, dword [esp + 0x10]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10012459
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x10100b54]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10012266
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x18], ecx
cmp byte [ecx + 0x1d], 2
jne 0x100121e7
xor esi, esi
jmp 0x10012266
mov eax, dword [ecx + 8]
test eax, eax
je 0x10012204
nop
cmp word [eax + 0x1a], 0
jne 0x100121fd
test byte [eax + 0x18], 4
je 0x10012204
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x100121f0
mov dword [ecx + 8], eax
test eax, eax
jne 0x10012222
mov eax, dword [ecx + 4]
test eax, eax
je 0x10012243
cmp word [eax + 0x1a], 0
je 0x10012222
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x10012212
jmp 0x10012243
push eax
push dword [ecx + 0x24]
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x1001223f
cmp esi, 5
je 0x1001223f
mov eax, dword [esp + 0x14]
jmp 0x1001225e
mov ecx, dword [esp + 0x18]
push 2
push edi
push dword [ecx + 0x28]
call dword [0x10100b54]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x10012459
mov ecx, dword [ebx + 0xcc]
test eax, eax
jne 0x1001227e
mov edi, dword [esp + 0x10]
lea esi, [eax + 7]
mov dword [edi], eax
jmp 0x1001245d
mov edx, dword [eax + 4]
cmp dword [edx], 0
jne 0x10012295
push eax
mov edx, edi
call fcn.1000cea0
add esp, 4
mov edx, eax
jmp 0x100122c2
movzx eax, word [edx + 0x1a]
xor edi, edi
cmp di, ax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc]
jne 0x100122b1
inc dword [ecx + 0xc]
movzx eax, word [edx + 0x1a]
jmp 0x100122b5
mov eax, dword [esp + 0x14]
inc eax
mov word [edx + 0x1a], ax
cmp edi, 1
jne 0x100122c2
mov dword [ecx + 0x2c], edx
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
test edx, edx
jne 0x100122d6
mov edi, ecx
lea esi, [edx + 7]
jmp 0x1001245d
mov edx, dword [esp + 0x20]
test esi, esi
jne 0x10012459
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
cmp dword [ecx + 0x10], esi
je 0x1001230b
test edx, edx
jne 0x1001230b
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x10012401
mov eax, dword [0x10100f7c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x10012401
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x20]
jne 0x10012392
cmp dword [ebx + 0x18], edi
jb 0x10012392
test edx, edx
jne 0x10012392
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x10012392
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x10012378
cmp dword [esp + 0x2c], edx
jne 0x10012378
lea ecx, [esp + 0x1c]
mov edx, edi
push ecx
mov ecx, eax
call fcn.100155c0
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10012423
mov edx, dword [esp + 0x1c]
inc dword [ebx + 0xbc]
call fcn.1000fef0
mov esi, eax
test esi, esi
je 0x100123ed
jmp 0x1001241f
cmp edi, dword [ebx + 0x9c]
jbe 0x100123a4
mov esi, 0xd
jmp 0x10012423
test edx, edx
je 0x100123da
mov eax, dword [0x10105844]
test eax, eax
je 0x100123b3
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x100123c2
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.1000c7f0
mov edx, edi
mov ecx, ebx
call fcn.1000ee80
mov eax, dword [0x10105848]
test eax, eax
je 0x100123d6
call eax
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.100c1600
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret
push 0x100f686c
push 0xb49f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 2
je 0x10012430
mov dl, 1
call fcn.1000cd60
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
cmp dword [ecx + 0x14], 1
jne 0x10012446
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x2c], 0
mov eax, dword [ecx + 0x1c]
push 1
push dword [ecx]
push dword [eax + 0x28]
call dword [0x10100b58]
add esp, 0xc
mov edi, dword [esp + 0x10]
mov ecx, ebx
call fcn.10011ec0
mov ecx, dword [esp + 0x34]
mov eax, esi
mov dword [edi], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be769
mov esp, ebp
pop ebp
ret