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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
xor ebx, ebx
mov dword [esp + 0x30], ecx
cmp dword [ebp + 0xc], ebx
mov eax, edx
push esi
setne bl
mov dword [esp + 0x1c], eax
push edi
mov edi, dword [ecx]
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [esp + 0x44], ebx
mov dl, byte [ebx + ecx + 0x19]
mov byte [esp + 0xf], dl
cmp dl, 7
jne 0x18121eca
mov eax, dword [edi + 0x20]
and eax, 0x80000
or eax, esi
jne 0x18121f19
mov eax, dword [esp + 0x20]
mov ebx, dword [ecx + ebx*4 + 0x1c]
test dl, dl
je 0x1812242b
test ebx, ebx
jne 0x1812242b
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x34]
mov dword [esp + 0x34], esi
push edx
push ecx
mov edx, eax
mov dword [esp + 0x34], esi
mov ecx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], esi
call fcn.18120d9f
add esp, 0xc
test eax, eax
je 0x18121f20
xor eax, eax
jmp 0x1812242d
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esp + 0x34], esi
cmp dword [eax + 0x14], esi
jle 0x181221f6
push 3
pop edx
mov dword [esp + 0x50], 0x18219978
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0x18219974
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x18121f5a
mov eax, dword [edx + ecx*4]
jmp 0x18121f5d
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x18121f72
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2]
jmp 0x18121f7a
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x28]
cwde
imul ecx, eax, 0x14
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x18121f94
mov eax, esi
jmp 0x18121fa0
push eax
call fcn.1817e400
pop ecx
and eax, 0x3fffffff
imul ecx, dword [esp + 0x24], 0x14
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], ecx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax]
mov dword [esp + 0x60], eax
test eax, eax
jne 0x18121fc4
mov eax, esi
jmp 0x18121fd0
push eax
call fcn.1817e400
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.1810f780
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x50]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
mov edx, 0x8b
mov ecx, ebx
call fcn.1810f956
pop ecx
pop ecx
push eax
push 0x35
pop edx
mov ecx, ebx
call fcn.1810f956
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov edx, eax
mov eax, dword [ebx]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x18122042
mov dword [esp + 0x10], edx
jmp 0x181220ac
test edx, edx
je 0x181220ac
mov eax, dword [ecx + 4]
and eax, 0x20000001
cmp eax, 0x20000000
je 0x18122064
mov eax, dword [edx + 4]
and eax, 0x20000001
cmp eax, 0x20000000
jne 0x1812209a
cmp byte [ebx + 0xcc], 2
jae 0x1812209a
mov edx, ecx
mov ecx, dword [esp + 0x24]
call fcn.1810fc83
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
call fcn.1810fc83
mov ecx, dword [esp + 0x24]
mov edx, 0x98
push 0x1821008c
call fcn.1810f8bd
jmp 0x181220a7
push edx
push ecx
push 0x2c
pop edx
mov ecx, ebx
call fcn.1810f956
pop ecx
mov dword [esp + 0x14], eax
pop ecx
cmp dword [ebp + 0xc], esi
je 0x1812213c
push esi
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
mov edx, 0x8b
mov ecx, ebx
call fcn.1810f956
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x50]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
mov edx, 0x8b
mov ecx, ebx
call fcn.1810f956
pop ecx
pop ecx
push eax
push 0x2d
pop edx
mov ecx, ebx
call fcn.1810f956
mov edx, dword [esp + 0x20]
mov ecx, ebx
push eax
call fcn.1810fa02
add esp, 0xc
mov dword [esp + 0x18], eax
mov al, byte [esp + 0xf]
cmp al, 7
je 0x181221e1
cmp al, 0xa
jne 0x18122189
cmp dword [ebp + 0xc], esi
je 0x181221e1
push esi
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push 0x3b
pop edx
call fcn.1810f780
pop ecx
pop ecx
push eax
mov edx, 0x8b
mov ecx, ebx
call fcn.1810f956
jmp 0x181221bd
cmp al, 9
jne 0x181221b1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x40]
test byte [eax + 0x10], 0x60
jne 0x181221b1
mov edx, dword [eax + 4]
test edx, edx
je 0x181221b1
push esi
push esi
mov ecx, edi
call fcn.1810fdce
jmp 0x181221bd
push esi
push esi
push 0x77
pop edx
mov ecx, edi
call fcn.1810f780
mov edx, dword [esp + 0x24]
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.18110608
pop ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], eax
push esi
push ecx
mov edx, eax
mov ecx, ebx
call fcn.181107f8
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 8]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [eax + 0x14]
jl 0x18121f4d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x18122207
mov edx, eax
mov ecx, edi
call fcn.180e676a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
test ecx, ecx
jne 0x1812221a
mov eax, esi
jmp 0x1812222a
push ecx
call fcn.1817e400
pop ecx
mov ecx, dword [esp + 0x34]
and eax, 0x3fffffff
cmp byte [esp + 0xf], 7
mov dword [esp + 0x28], eax
jne 0x18122296
push str.FOREIGN_KEY_constraint_failed
mov dword [esp + 0x64], ecx
mov ecx, edi
push 0x47
pop edx
mov dword [esp + 0x68], eax
call fcn.1810f8bd
mov dword [esp + 0x44], eax
pop ecx
test eax, eax
je 0x18122259
mov byte [eax + 1], 2
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x78]
xor edx, edx
push esi
push eax
mov ecx, ebx
call fcn.1811cc79
pop ecx
pop ecx
push eax
push dword [esp + 0x5c]
xor edx, edx
mov ecx, ebx
call fcn.18110608
pop ecx
mov edx, eax
mov ecx, ebx
call fcn.18129a0e
add esp, 0x1c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov ecx, edi
mov eax, dword [esp + 0x28]
add eax, 0x55
push esi
push eax
call fcn.180e699a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x18122364
push dword [esp + 0x28]
lea eax, [ebx + 0x24]
push dword [esp + 0x38]
lea ecx, [eax + 0x30]
mov dword [esp + 0x1c], eax
push ecx
mov dword [ebx + 0x1c], eax
mov dword [eax + 0xc], ecx
call fcn.18175220
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x181222fc
push esi
push 1
mov edx, eax
mov ecx, edi
call fcn.1810fdce
pop ecx
pop ecx
mov ecx, eax
jmp 0x181222fe
mov ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 1
mov dword [eax + 0x14], ecx
mov ecx, edi
call fcn.181100e7
mov edx, dword [esp + 0x30]
pop ecx
mov ecx, dword [esp + 0x14]
push 1
mov dword [ecx + 0x18], eax
mov ecx, edi
call fcn.1811041e
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x18122364
mov ecx, dword [esp + 0x38]
push esi
push eax
push 0x13
pop edx
call fcn.1810f956
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x1812235f
push esi
push 1
mov edx, eax
mov ecx, edi
call fcn.1810fdce
pop ecx
pop ecx
jmp 0x18122361
mov eax, esi
mov dword [ebx + 0xc], eax
sub dword [edi + 0x118], 1
jne 0x18122374
movzx esi, word [edi + 0x11e]
mov eax, dword [esp + 0x10]
mov word [edi + 0x11c], si
test eax, eax
je 0x1812238c
mov edx, eax
mov ecx, edi
call fcn.1810fc83
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1812239d
mov edx, eax
mov ecx, edi
call fcn.1810fc83
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x181223ae
mov edx, eax
mov ecx, edi
call fcn.18110852
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x181223c2
push 1
mov edx, eax
mov ecx, edi
call fcn.18129943
pop ecx
cmp byte [edi + 0x51], 1
jne 0x181223d6
mov edx, ebx
mov ecx, edi
call fcn.181216af
jmp 0x18121f19
mov al, byte [esp + 0xf]
cmp al, 7
je 0x181223fa
cmp al, 0xa
jne 0x181223f1
cmp dword [ebp + 0xc], 0
jne 0x181223f1
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0x7e
jmp 0x18122401
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0x7f
jmp 0x18122401
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0x88
cmp dword [ebp + 0xc], 0
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x20]
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, 0x7e
mov byte [ebx + 8], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret