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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], edx
xor edx, edx
cmp dword [esp + 0x5c], edx
push ebx
setne dl
push ebp
mov ebp, ecx
mov dword [esp + 0x34], edx
push esi
mov cl, byte [edx + eax + 0x19]
mov esi, dword [eax + edx*4 + 0x1c]
mov byte [esp + 0xe], cl
push edi
mov edi, dword [ebp]
test cl, cl
je 0x445ae7
test esi, esi
jne 0x445ae7
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], ebx
push ecx
push eax
mov ecx, ebp
call fcn.004445a4
add esp, 0xc
test eax, eax
je 0x4456c4
xor eax, eax
jmp 0x445ae9
mov esi, dword [esp + 0x68]
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x14], ecx
jle 0x44591d
push 3
pop eax
mov dword [esp + 0x48], 0x4b8b58
mov ebx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x4b8b54
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x445701
mov edx, dword [eax + ecx*4]
jmp 0x445704
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x445715
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx*2]
jmp 0x44571d
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x20]
cwde
imul ecx, eax, 0x18
mov eax, dword [esp + 0x20]
imul edx, edx, 0x18
mov eax, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [ecx + eax]
mov eax, dword [ebx]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 4]
mov esi, dword [edx + eax]
mov dword [esp + 0x58], esi
call fcn.00415cec
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.00415cec
push 0
push ecx
mov dword [esp + 0x64], eax
mov ecx, edi
push 0
lea eax, [esp + 0x64]
push eax
push 0x1b
pop esi
mov edx, esi
call fcn.004370aa
add esp, 0xc
mov edx, esi
push eax
push 0
push ecx
lea eax, [esp + 0x50]
mov ecx, edi
push 0
push eax
call fcn.004370aa
add esp, 0xc
mov edx, esi
mov ecx, edi
push eax
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004370aa
pop ecx
pop ecx
push eax
push 0x7a
pop edx
mov ecx, ebp
call fcn.00437206
add esp, 0xc
mov ecx, ebp
push eax
push 0x4f
pop edx
call fcn.00437206
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004372bc
cmp dword [esp + 0x70], 0
pop ecx
mov dword [esp + 0x14], eax
je 0x445861
xor eax, eax
mov edx, esi
push eax
push ecx
push eax
push ecx
push eax
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.004370aa
add esp, 0xc
mov edx, esi
mov ecx, edi
push eax
lea eax, [esp + 0x60]
push 0
push eax
call fcn.004370aa
pop ecx
pop ecx
push eax
push 0x7a
pop edx
mov ecx, ebp
call fcn.00437206
add esp, 0x10
mov edx, esi
push eax
push 0
push ecx
lea eax, [esp + 0x50]
mov ecx, edi
push 0
push eax
call fcn.004370aa
add esp, 0xc
mov edx, esi
mov ecx, edi
push eax
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004370aa
pop ecx
pop ecx
push eax
push 0x7a
pop edx
mov ecx, ebp
call fcn.00437206
add esp, 0xc
mov ecx, ebp
push eax
push 0x49
pop edx
call fcn.00437206
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004372bc
pop ecx
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x12]
cmp al, 6
je 0x445903
cmp al, 9
jne 0x4458aa
cmp dword [esp + 0x6c], 0
je 0x445903
push 0
push ecx
lea eax, [esp + 0x48]
mov edx, esi
push 0
push eax
mov ecx, edi
call fcn.004370aa
add esp, 0xc
mov edx, esi
mov ecx, edi
push eax
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004370aa
pop ecx
pop ecx
push eax
push 0x7a
jmp 0x4458d5
cmp al, 8
jne 0x4458ce
mov eax, dword [ebx]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x4458ce
push 0
push 0
mov ecx, edi
call fcn.00437686
pop ecx
pop ecx
jmp 0x4458e0
xor eax, eax
push eax
push eax
push eax
push 0x65
pop edx
mov ecx, ebp
call fcn.00437206
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.00437ce1
pop ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], eax
push 0
push ecx
mov edx, eax
mov ecx, ebp
call fcn.00437d7b
pop ecx
pop ecx
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [ebx + 0x14]
jl 0x4456f4
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.00413e42
mov eax, dword [esi]
mov esi, dword [eax]
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.00415cec
cmp byte [esp + 0x12], 6
mov dword [esp + 0x30], eax
jne 0x4459a6
push str.FOREIGN_KEY_constraint_failed
push 0x39
pop edx
mov ecx, edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
call fcn.0043717f
mov esi, eax
pop ecx
test esi, esi
je 0x445964
mov byte [esi + 1], 2
xor eax, eax
xor edx, edx
push eax
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x2c]
mov ecx, edi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00440af6
pop ecx
pop ecx
push eax
push esi
xor edx, edx
mov ecx, ebp
call fcn.00437ce1
pop ecx
mov edx, eax
mov ecx, ebp
call fcn.0044bf84
add esp, 0x20
mov dword [esp + 0x28], eax
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x30]
mov cl, byte [edi + 0xfa]
lea edx, [eax + 0x49]
mov byte [esp + 0x13], cl
mov ecx, edi
mov byte [edi + 0xfa], 0
call fcn.00413fc8
mov esi, eax
test esi, esi
je 0x445a4e
push dword [esp + 0x30]
lea ebx, [esi + 0x24]
push dword [esp + 0x3c]
lea ecx, [ebx + 0x24]
mov dword [esi + 0x1c], ebx
push ecx
mov dword [ebx + 0xc], ecx
call fcn.0047e230
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
push 0
push 1
call fcn.00437686
mov edx, dword [esp + 0x24]
mov ecx, edi
push 1
mov dword [ebx + 0x10], eax
call fcn.0043791c
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, edi
mov dword [ebx + 0x14], eax
push 1
call fcn.00437be5
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
pop ecx
test eax, eax
je 0x445a4e
push 0
push 0
push eax
push 0x13
pop edx
mov ecx, ebp
call fcn.00437206
add esp, 0xc
mov dword [esp + 0x18], eax
mov edx, eax
mov ecx, edi
push 0
push 1
call fcn.00437686
pop ecx
pop ecx
mov dword [esi + 0xc], eax
mov al, byte [esp + 0x13]
mov ecx, edi
mov edx, dword [esp + 0x14]
mov byte [edi + 0xfa], al
call fcn.00437583
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.00437583
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.00437db3
mov edx, dword [esp + 0x28]
mov ecx, edi
push 1
call fcn.0044befd
cmp byte [edi + 0x41], 1
pop ecx
jne 0x445a9b
mov edx, esi
mov ecx, edi
call fcn.00444e81
jmp 0x4456bd
mov al, byte [esp + 0x12]
cmp al, 6
je 0x445ab8
cmp al, 9
jne 0x445ab3
cmp dword [esp + 0x6c], 0
jne 0x445ab3
mov byte [ebx], 0x6d
jmp 0x445abb
mov byte [ebx], 0x6e
jmp 0x445abb
mov byte [ebx], 0x77
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x6c], 0
mov dword [ebx + 4], esi
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4 + 0x1c], esi
setne al
add al, 0x6d
mov byte [esi + 8], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret