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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x100fc008]
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 0x10011e17
cmp byte [ebx + 0x74], 0
je 0x10011e17
cmp byte [ebx + 0x10], 1
je 0x10011e0d
test al, 2
je 0x10011e17
mov dword [esp + 0x2c], 1
jmp 0x10011e1b
mov dword [esp + 0x2c], esi
test edi, edi
jne 0x10011e4d
push 0x100f284c
push 0xb450
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007030
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10011e5b
mov esi, eax
jmp 0x1001215a
cmp dword [esp + 0x2c], esi
je 0x10012029
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x10011e92
lea eax, [esp + 0x1c]
mov edx, edi
push eax
call fcn.10015440
mov esi, eax
add esp, 4
test esi, esi
jne 0x100122d9
cmp dword [esp + 0x1c], eax
jne 0x10012029
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.100dbe80
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 0x100122d9
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10012029
cmp byte [ebx + 0x10], 1
jbe 0x10011f3e
mov edx, edi
mov ecx, ebx
call fcn.10012300
mov dword [esp + 0x28], eax
test eax, eax
je 0x10011f36
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.100dbe80
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 0x10011fff
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x28], esi
test esi, esi
je 0x10011f73
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.100bd8d0
add esp, 0xc
jmp 0x10011ff0
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x14], eax
adc edx, 0
push edx
push eax
call fcn.100048b0
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
je 0x10011fac
push dword [esp + 0x14]
push 0
push esi
call fcn.100bd8d0
add esp, 0xc
test esi, esi
jne 0x10011fe0
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.100dbe80
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 0x10011fff
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 0x10012021
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.100baa39
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100122d9
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x100fcb54]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100120e6
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x18], ecx
cmp byte [ecx + 0x1d], 2
jne 0x10012067
xor esi, esi
jmp 0x100120e6
mov eax, dword [ecx + 8]
test eax, eax
je 0x10012084
nop
cmp word [eax + 0x1a], 0
jne 0x1001207d
test byte [eax + 0x18], 4
je 0x10012084
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x10012070
mov dword [ecx + 8], eax
test eax, eax
jne 0x100120a2
mov eax, dword [ecx + 4]
test eax, eax
je 0x100120c3
cmp word [eax + 0x1a], 0
je 0x100120a2
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x10012092
jmp 0x100120c3
push eax
push dword [ecx + 0x24]
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x100120bf
cmp esi, 5
je 0x100120bf
mov eax, dword [esp + 0x14]
jmp 0x100120de
mov ecx, dword [esp + 0x18]
push 2
push edi
push dword [ecx + 0x28]
call dword [0x100fcb54]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x100122d9
mov ecx, dword [ebx + 0xcc]
test eax, eax
jne 0x100120fe
mov edi, dword [esp + 0x10]
lea esi, [eax + 7]
mov dword [edi], eax
jmp 0x100122dd
mov edx, dword [eax + 4]
cmp dword [edx], 0
jne 0x10012115
push eax
mov edx, edi
call fcn.1000cd20
add esp, 4
mov edx, eax
jmp 0x10012142
movzx eax, word [edx + 0x1a]
xor edi, edi
cmp di, ax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc]
jne 0x10012131
inc dword [ecx + 0xc]
movzx eax, word [edx + 0x1a]
jmp 0x10012135
mov eax, dword [esp + 0x14]
inc eax
mov word [edx + 0x1a], ax
cmp edi, 1
jne 0x10012142
mov dword [ecx + 0x2c], edx
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
test edx, edx
jne 0x10012156
mov edi, ecx
lea esi, [edx + 7]
jmp 0x100122dd
mov edx, dword [esp + 0x20]
test esi, esi
jne 0x100122d9
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
cmp dword [ecx + 0x10], esi
je 0x1001218b
test edx, edx
jne 0x1001218b
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x10012281
mov eax, dword [0x100fcf7c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x10012281
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x20]
jne 0x10012212
cmp dword [ebx + 0x18], edi
jb 0x10012212
test edx, edx
jne 0x10012212
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x10012212
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x100121f8
cmp dword [esp + 0x2c], edx
jne 0x100121f8
lea ecx, [esp + 0x1c]
mov edx, edi
push ecx
mov ecx, eax
call fcn.10015440
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100122a3
mov edx, dword [esp + 0x1c]
inc dword [ebx + 0xbc]
call fcn.1000fd70
mov esi, eax
test esi, esi
je 0x1001226d
jmp 0x1001229f
cmp edi, dword [ebx + 0x9c]
jbe 0x10012224
mov esi, 0xd
jmp 0x100122a3
test edx, edx
je 0x1001225a
mov eax, dword [0x100ffb8c]
test eax, eax
je 0x10012233
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x10012242
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.1000c670
mov edx, edi
mov ecx, ebx
call fcn.1000ed00
mov eax, dword [0x100ffb90]
test eax, eax
je 0x10012256
call eax
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.100bd8d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
push 0x100f284c
push 0xb49f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007030
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 2
je 0x100122b0
mov dl, 1
call fcn.1000cbe0
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
cmp dword [ecx + 0x14], 1
jne 0x100122c6
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 [0x100fcb58]
add esp, 0xc
mov edi, dword [esp + 0x10]
mov ecx, ebx
call fcn.10011d40
mov ecx, dword [esp + 0x34]
mov eax, esi
mov dword [edi], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100baa39
mov esp, ebp
pop ebp
ret