Function at 0x10011f10
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 0x10011f67
cmp byte [ebx + 0x74], 0
je 0x10011f67
cmp byte [ebx + 0x10], 1
je 0x10011f5d
test al, 2
je 0x10011f67
mov dword [esp + 0x2c], 1
jmp 0x10011f6b
mov dword [esp + 0x2c], esi
test edi, edi
jne 0x10011f9d
push 0x100f685c
push 0xb450
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10011fab
mov esi, eax
jmp 0x100122aa
cmp dword [esp + 0x2c], esi
je 0x10012179
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x10011fe2
lea eax, [esp + 0x1c]
mov edx, edi
push eax
call fcn.10015590
mov esi, eax
add esp, 4
test esi, esi
jne 0x10012429
cmp dword [esp + 0x1c], eax
jne 0x10012179
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.100dfcd0
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 0x10012429
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10012179
cmp byte [ebx + 0x10], 1
jbe 0x1001208e
mov edx, edi
mov ecx, ebx
call fcn.10012450
mov dword [esp + 0x28], eax
test eax, eax
je 0x10012086
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.100dfcd0
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 0x1001214f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x28], esi
test esi, esi
je 0x100120c3
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.100c1720
add esp, 0xc
jmp 0x10012140
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x14], eax
adc edx, 0
push edx
push eax
call fcn.100049d0
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
je 0x100120fc
push dword [esp + 0x14]
push 0
push esi
call fcn.100c1720
add esp, 0xc
test esi, esi
jne 0x10012130
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.100dfcd0
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 0x1001214f
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 0x10012171
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.100be889
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10012429
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 0x10012236
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x18], ecx
cmp byte [ecx + 0x1d], 2
jne 0x100121b7
xor esi, esi
jmp 0x10012236
mov eax, dword [ecx + 8]
test eax, eax
je 0x100121d4
nop
cmp word [eax + 0x1a], 0
jne 0x100121cd
test byte [eax + 0x18], 4
je 0x100121d4
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x100121c0
mov dword [ecx + 8], eax
test eax, eax
jne 0x100121f2
mov eax, dword [ecx + 4]
test eax, eax
je 0x10012213
cmp word [eax + 0x1a], 0
je 0x100121f2
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x100121e2
jmp 0x10012213
push eax
push dword [ecx + 0x24]
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x1001220f
cmp esi, 5
je 0x1001220f
mov eax, dword [esp + 0x14]
jmp 0x1001222e
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 0x10012429
mov ecx, dword [ebx + 0xcc]
test eax, eax
jne 0x1001224e
mov edi, dword [esp + 0x10]
lea esi, [eax + 7]
mov dword [edi], eax
jmp 0x1001242d
mov edx, dword [eax + 4]
cmp dword [edx], 0
jne 0x10012265
push eax
mov edx, edi
call fcn.1000ce70
add esp, 4
mov edx, eax
jmp 0x10012292
movzx eax, word [edx + 0x1a]
xor edi, edi
cmp di, ax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc]
jne 0x10012281
inc dword [ecx + 0xc]
movzx eax, word [edx + 0x1a]
jmp 0x10012285
mov eax, dword [esp + 0x14]
inc eax
mov word [edx + 0x1a], ax
cmp edi, 1
jne 0x10012292
mov dword [ecx + 0x2c], edx
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
test edx, edx
jne 0x100122a6
mov edi, ecx
lea esi, [edx + 7]
jmp 0x1001242d
mov edx, dword [esp + 0x20]
test esi, esi
jne 0x10012429
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
cmp dword [ecx + 0x10], esi
je 0x100122db
test edx, edx
jne 0x100122db
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x100123d1
mov eax, dword [0x10100f7c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x100123d1
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x20]
jne 0x10012362
cmp dword [ebx + 0x18], edi
jb 0x10012362
test edx, edx
jne 0x10012362
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x10012362
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x10012348
cmp dword [esp + 0x2c], edx
jne 0x10012348
lea ecx, [esp + 0x1c]
mov edx, edi
push ecx
mov ecx, eax
call fcn.10015590
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100123f3
mov edx, dword [esp + 0x1c]
inc dword [ebx + 0xbc]
call fcn.1000fec0
mov esi, eax
test esi, esi
je 0x100123bd
jmp 0x100123ef
cmp edi, dword [ebx + 0x9c]
jbe 0x10012374
mov esi, 0xd
jmp 0x100123f3
test edx, edx
je 0x100123aa
mov eax, dword [0x101057f4]
test eax, eax
je 0x10012383
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x10012392
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.1000c7c0
mov edx, edi
mov ecx, ebx
call fcn.1000ee50
mov eax, dword [0x101057f8]
test eax, eax
je 0x100123a6
call eax
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.100c1720
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret
push 0x100f685c
push 0xb49f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10007150
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 2
je 0x10012400
mov dl, 1
call fcn.1000cd30
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
cmp dword [ecx + 0x14], 1
jne 0x10012416
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.10011e90
mov ecx, dword [esp + 0x34]
mov eax, esi
mov dword [edi], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100be889
mov esp, ebp
pop ebp
ret