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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, ecx
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 8], eax
cmp dword [ebp + 0xc], edx
push ebx
push esi
push edi
mov edi, dword [eax]
setne dl
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], edx
mov cl, byte [edx + eax + 0x19]
mov byte [esp + 0x13], cl
cmp cl, 6
jne 0x18115f51
test dword [edi + 0x1c], 0x80000
jne 0x18115fa4
mov ebx, dword [eax + edx*4 + 0x1c]
test cl, cl
je 0x181164d9
test ebx, ebx
jne 0x181164d9
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
xor esi, esi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
mov ebx, esi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], esi
call fcn.18114e28
add esp, 0xc
test eax, eax
je 0x18115fab
xor eax, eax
jmp 0x181164db
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esp + 0x30], esi
cmp dword [eax + 0x14], esi
jle 0x181162bb
push 3
pop edx
mov dword [esp + 0x50], 0x181fe08c
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0x181fe088
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x18115fe9
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x24], eax
jmp 0x18115ff4
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x18116005
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2]
jmp 0x1811600d
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x28]
movsx ecx, ax
mov eax, dword [esp + 0x2c]
add ecx, ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x18116028
mov eax, esi
jmp 0x18116034
push eax
call fcn.1816ad40
pop ecx
and eax, 0x3fffffff
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
shl ecx, 4
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax]
mov dword [esp + 0x60], eax
test eax, eax
jne 0x1811605a
mov eax, esi
jmp 0x18116066
push eax
call fcn.1816ad40
pop ecx
and eax, 0x3fffffff
mov dword [esp + 0x64], eax
mov ecx, edi
push esi
lea eax, [esp + 0x64]
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x50]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x7a
pop edx
call fcn.181065d6
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push 0x35
pop edx
call fcn.181065d6
mov dword [esp + 0x24], eax
pop ecx
pop ecx
test ebx, ebx
je 0x1811616c
test eax, eax
je 0x1811616e
mov ecx, ebx
call fcn.181066a8
test eax, eax
jne 0x18116144
mov ecx, dword [esp + 0x1c]
call fcn.181066a8
test eax, eax
jne 0x18116144
push esi
push esi
push 0x2c
pop edx
mov ecx, edi
call fcn.1810641c
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x1811611a
mov edx, ebx
mov ecx, edi
call fcn.181068fb
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.181068fb
jmp 0x1811613e
mov eax, dword [esp + 0x1c]
mov edx, 0x200104
mov dword [ecx + 0x10], eax
mov eax, dword [eax + 4]
and eax, edx
mov dword [ecx + 0xc], ebx
or dword [ecx + 4], eax
mov eax, dword [ebx + 4]
and eax, edx
or dword [ecx + 4], eax
call fcn.18106374
mov ebx, dword [esp + 0x40]
jmp 0x1811616e
mov edx, ebx
mov ecx, edi
call fcn.181068fb
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.181068fb
push esi
push 0x181d27d0
mov edx, 0x86
mov ecx, edi
call fcn.1810641c
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x18116200
push esi
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
push eax
push 0x7a
pop edx
call fcn.181065d6
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x50]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x7a
pop edx
call fcn.181065d6
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push 0x2d
pop edx
call fcn.181065d6
mov edx, dword [esp + 0x28]
mov ecx, edi
push eax
call fcn.181066d0
add esp, 0xc
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x13]
cmp al, 6
je 0x181162a2
cmp al, 9
jne 0x1811624d
cmp dword [ebp + 0xc], esi
je 0x181162a2
push esi
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810641c
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
push eax
push 0x7a
pop edx
call fcn.181065d6
jmp 0x1811627a
push esi
push esi
cmp al, 8
jne 0x18116270
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx + 4]
mov ecx, edi
test edx, edx
je 0x18116272
call fcn.18106a28
jmp 0x1811627a
mov ecx, edi
push 0x65
pop edx
call fcn.1810641c
mov edx, dword [esp + 0x30]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.1810716c
pop ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x28], eax
push esi
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.1810730a
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 8]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + 0x14]
jl 0x18115fd8
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x181162cc
mov edx, eax
mov ecx, edi
call fcn.180dfba4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x181162df
mov eax, esi
jmp 0x181162ef
push ecx
call fcn.1816ad40
pop ecx
mov ecx, dword [esp + 0x3c]
and eax, 0x3fffffff
cmp byte [esp + 0x13], 6
mov dword [esp + 0x34], eax
jne 0x1811635e
push str.FOREIGN_KEY_constraint_failed
mov dword [esp + 0x64], ecx
mov ecx, edi
push 0x46
pop edx
mov dword [esp + 0x68], eax
call fcn.1810653d
mov dword [esp + 0x44], eax
pop ecx
test eax, eax
je 0x1811631e
mov byte [eax + 1], 2
push esi
push esi
push esi
push esi
push esi
push ebx
lea eax, [esp + 0x78]
xor edx, edx
push esi
push eax
mov ecx, edi
call fcn.1811110e
pop ecx
pop ecx
push eax
push ecx
push dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
xor edx, edx
call fcn.1810716c
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
mov edx, eax
call fcn.1811cd6d
add esp, 0x1c
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x34]
mov ecx, edi
inc dword [edi + 0x108]
add eax, 0x4d
push esi
push eax
call fcn.180dfd8e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x18116423
push dword [esp + 0x34]
lea eax, [ebx + 0x24]
push dword [esp + 0x40]
lea ecx, [eax + 0x28]
mov dword [esp + 0x20], eax
push ecx
mov dword [ebx + 0x1c], eax
mov dword [eax + 0xc], ecx
call fcn.18161b60
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x181163bb
push esi
push 1
mov edx, eax
mov ecx, edi
call fcn.18106a28
pop ecx
pop ecx
mov ecx, eax
jmp 0x181163bd
mov ecx, esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push 1
mov dword [eax + 0x10], ecx
mov ecx, edi
call fcn.18106cf6
mov edx, dword [esp + 0x3c]
pop ecx
mov ecx, dword [esp + 0x18]
push 1
mov dword [ecx + 0x14], eax
mov ecx, edi
call fcn.1810701c
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x18116423
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x13
pop edx
call fcn.181065d6
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x18116420
push esi
mov edx, ecx
mov ecx, edi
push 1
call fcn.18106a28
pop ecx
pop ecx
mov esi, eax
mov dword [ebx + 0xc], esi
dec dword [edi + 0x108]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1811643a
mov edx, eax
mov ecx, edi
call fcn.181068fb
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1811644b
mov edx, eax
mov ecx, edi
call fcn.181068fb
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1811645c
mov edx, eax
mov ecx, edi
call fcn.18107343
mov eax, dword [esp + 0x38]
test eax, eax
je 0x18116470
push 1
mov edx, eax
mov ecx, edi
call fcn.1811ccbd
pop ecx
cmp byte [edi + 0x49], 1
jne 0x18116484
mov edx, ebx
mov ecx, edi
call fcn.18115743
jmp 0x18115fa4
mov al, byte [esp + 0x13]
cmp al, 6
je 0x181164a8
cmp al, 9
jne 0x1811649f
cmp dword [ebp + 0xc], 0
jne 0x1811649f
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0x6d
jmp 0x181164af
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0x6e
jmp 0x181164af
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0x77
cmp dword [ebp + 0xc], 0
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x48]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x1c], ebx
setne al
add al, 0x6d
mov byte [ebx + 8], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret