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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
xor eax, eax
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
setne al
movzx ecx, byte [eax + esi + 0x19]
mov dword [esp + 0x54], eax
mov eax, dword [esi + eax*4 + 0x1c]
mov dword [esp + 0x3c], ecx
cmp ecx, edi
je 0x45a849
cmp eax, edi
jne 0x45a849
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x44]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], edi
call fcn.004581f0
add esp, 0x14
test eax, eax
jne 0x45a7e6
xor ecx, ecx
cmp dword [esi + 0x14], edi
mov dword [esp + 0x30], ecx
jle 0x45a4a5
mov eax, 3
mov dword [esp + 0x60], 0x4d2234
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x4d2230
mov dword [esp + 0x6c], eax
jmp 0x459ef4
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, dword [ebp + 8]
test eax, eax
je 0x459f04
mov edx, dword [eax + ecx*4]
jmp 0x459f0a
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x459f26
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ecx*8]
jmp 0x459f2b
mov ecx, 0x4d3668
lea eax, [edx + edx*2]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [eax + edx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x70], edx
mov eax, ecx
test ecx, ecx
je 0x459f63
cmp byte [ecx], 0
je 0x459f5c
inc eax
cmp byte [eax], 0
jne 0x459f56
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x5c], eax
mov eax, edx
test edx, edx
jne 0x459f73
mov dword [esp + 0x2c], edx
jmp 0x459f89
cmp byte [edx], 0
je 0x459f7e
inc eax
cmp byte [eax], 0
jne 0x459f78
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
push 1
mov dword [esp + 0x78], eax
push 0x1a
push ecx
lea eax, [esp + 0x7c]
call fcn.00447030
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x459fc2
push eax
push edi
call fcn.00447530
push 0
push edi
call fcn.00447530
add esp, 0x10
jmp 0x459fc9
mov ebx, eax
call fcn.00446f40
mov edx, dword [esi]
push 1
push 0x1a
push edx
lea eax, [esp + 0x64]
call fcn.00447030
mov edi, dword [esi]
add esp, 0xc
mov dword [esp + 0x48], eax
test eax, eax
jne 0x459ffa
push eax
push edi
call fcn.00447530
push 0
push edi
call fcn.00447530
add esp, 0x10
jmp 0x45a001
mov ebx, eax
call fcn.00446f40
mov eax, dword [esi]
push 1
push 0x1a
push eax
lea eax, [esp + 0x6c]
call fcn.00447030
mov edi, dword [esi]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x45a02f
push eax
push edi
call fcn.00447530
push ebx
push edi
call fcn.00447530
add esp, 0x10
jmp 0x45a034
call fcn.00446f40
mov esi, dword [esi]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x45a068
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], cx
mov dword [esi + 0x2c], 1
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edi, dword [edx]
mov eax, ebx
call fcn.00447170
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov dword [esp + 0x24], eax
test eax, eax
je 0x45a0b3
push 0x30
mov esi, eax
push 0
push esi
call fcn.004a2540
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x4c
mov word [esi + 0x1e], ax
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx]
call fcn.00447170
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push edx
call fcn.00447200
add esp, 8
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x1c], eax
je 0x45a2bb
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.00447030
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45a11b
push eax
push esi
call fcn.00447530
push 0
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a125
mov ebx, eax
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.00447030
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45a153
push eax
push esi
call fcn.00447530
push edi
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a15d
mov ebx, edi
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x45a191
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov eax, edi
mov edi, dword [ebx]
call fcn.00447170
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.00447030
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45a1d0
push eax
push esi
call fcn.00447530
push edi
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a1da
mov ebx, edi
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x6c]
call fcn.00447030
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45a20b
push eax
push esi
call fcn.00447530
push 0
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a215
mov ebx, eax
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x45a249
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, edi
mov edi, dword [ebx]
call fcn.00447170
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov dword [esp + 0x24], eax
test eax, eax
je 0x45a28e
push 0x30
mov esi, eax
push 0
push esi
call fcn.004a2540
add esp, 0xc
or eax, 0xffffffff
mov byte [esi], 0x46
mov word [esi + 0x1e], ax
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx]
call fcn.00447170
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ecx
push edx
call fcn.00447200
add esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x45a490
cmp eax, 9
jne 0x45a39c
cmp dword [ebp + 0x14], 0
je 0x45a490
mov eax, dword [ebx]
push 1
push 0x1a
push eax
lea eax, [esp + 0x64]
call fcn.00447030
mov esi, dword [ebx]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45a30c
push eax
push esi
call fcn.00447530
push 0
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a316
mov ebx, eax
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push 1
push 0x1a
push ecx
lea eax, [esp + 0x74]
call fcn.00447030
mov esi, dword [ebx]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45a344
push eax
push esi
call fcn.00447530
push edi
push esi
call fcn.00447530
add esp, 0x10
jmp 0x45a34e
mov ebx, edi
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
mov dword [esp + 0x48], esi
test esi, esi
je 0x45a382
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x76
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, edi
mov edi, dword [ebx]
call fcn.00447170
mov eax, dword [esp + 0x48]
jmp 0x45a42f
cmp eax, 8
jne 0x45a3da
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x50]
mov eax, dword [edx + eax + 4]
push 0
push 0
test eax, eax
je 0x45a3c9
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004476c0
add esp, 0x10
jmp 0x45a42f
xor esi, esi
lea eax, [esi + 0x62]
mov ecx, ebx
call fcn.004471d0
add esp, 8
jmp 0x45a42f
mov esi, dword [ebx]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
test esi, esi
je 0x45a40a
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or edx, 0xffffffff
mov byte [esi], 0x62
mov word [esi + 0x1e], dx
mov dword [esi + 0x2c], 1
mov edi, dword [ebx]
test esi, esi
jne 0x45a423
push esi
push edi
call fcn.00447530
push esi
push edi
call fcn.00447530
add esp, 0x10
jmp 0x45a42d
mov ebx, esi
call fcn.00446f40
mov ebx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
mov eax, ebx
call fcn.00447f20
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x45a490
mov edi, dword [esp + 0x70]
mov esi, dword [ebx]
mov ecx, eax
mov eax, dword [ecx]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*4 - 0x14]
mov dword [esp + 0x50], ecx
test edi, edi
jne 0x45a468
xor esi, esi
jmp 0x45a489
mov ebx, dword [esp + 0x2c]
lea ecx, [ebx + 1]
call fcn.00420a20
mov esi, eax
test esi, esi
je 0x45a489
push ebx
push edi
push esi
call fcn.004a44a0
add esp, 0xc
mov byte [esi + ebx], 0
mov edx, dword [esp + 0x50]
mov dword [edx + 4], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
inc eax
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x30], eax
jl 0x459ef0
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
push edx
push edi
call fcn.00420800
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx]
add esp, 8
mov dword [esp + 0x4c], ecx
mov eax, ecx
test ecx, ecx
je 0x45a4dd
cmp byte [ecx], 0
je 0x45a4d6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x45a4d0
sub eax, ecx
and eax, 0x3fffffff
cmp dword [esp + 0x3c], 6
mov dword [esp + 0x24], eax
jne 0x45a643
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ecx
mov eax, str.foreign_key_constraint_failed
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x45a500
sub eax, str.foreign_key_constraint_failed
and eax, 0x3fffffff
mov dword [esp + 0x6c], eax
inc eax
lea ecx, [eax + 0x30]
mov esi, edi
mov dword [esp + 0x50], ecx
call fcn.00420a20
mov ebx, eax
test ebx, ebx
je 0x45a583
mov edx, dword [esp + 0x50]
push edx
push 0
push ebx
call fcn.004a2540
mov esi, dword [esp + 0x78]
or eax, 0xffffffff
mov word [ebx + 0x1e], ax
lea eax, [esi + 1]
add esp, 0xc
mov byte [ebx], 0x38
test eax, eax
jne 0x45a55c
mov ecx, 0x400
or word [ebx + 2], cx
mov dword [ebx + 4], eax
jmp 0x45a578
push esi
lea eax, [ebx + 0x30]
push str.foreign_key_constraint_failed
push eax
mov dword [ebx + 4], eax
call fcn.004a44a0
mov edx, dword [ebx + 4]
add esp, 0xc
mov byte [esi + edx], 0
mov dword [ebx + 0x2c], 1
mov byte [ebx + 1], 2
mov ecx, 0x40
mov esi, edi
call fcn.00420a20
mov esi, eax
test esi, esi
je 0x45a5ce
push 0x40
push 0
push esi
call fcn.004a2540
mov eax, 1
mov word [esi + 2], ax
movsx ecx, word [esi]
add esp, 0xc
push ecx
push eax
push edi
mov eax, esi
call fcn.00453360
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x45a5d2
push esi
mov esi, edi
call fcn.004535a0
add esp, 4
xor esi, esi
jmp 0x45a60b
movsx eax, word [esi]
lea edx, [eax*8]
sub edx, eax
lea eax, [esi + edx*8 - 0x30]
mov dword [esp + 0x48], eax
push edi
lea eax, [esp + 0x74]
call fcn.0044ffc0
mov ecx, dword [esp + 0x4c]
add esp, 4
mov dword [ecx + 4], eax
push edi
xor eax, eax
call fcn.0044ffc0
mov edx, dword [esp + 0x4c]
add esp, 4
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
mov esi, dword [ebp + 8]
push 0
mov ecx, ebx
mov eax, esi
call fcn.00447f20
add esp, 4
push esi
call fcn.00462550
add esp, 0x24
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
mov cl, byte [edi + 0xea]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x24]
add ecx, 0x4d
mov esi, edi
mov byte [edi + 0xea], 0
call fcn.00420a20
mov ebx, eax
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x45a67f
mov eax, dword [esp + 0x24]
add eax, 0x4d
push eax
push 0
push ebx
call fcn.004a2540
add esp, 0xc
mov dword [esp + 0x44], ebx
test ebx, ebx
je 0x45a78f
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
lea esi, [ebx + 0x24]
push ecx
lea eax, [esi + 0x28]
push edx
mov dword [ebx + 0x1c], esi
push eax
mov dword [esp + 0x34], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
call fcn.004a44a0
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
push 1
push eax
push edi
call fcn.004476c0
mov ecx, dword [esp + 0x30]
push 1
push ecx
push edi
mov dword [esi + 0x14], eax
call fcn.00447940
mov edx, dword [esp + 0x54]
add esp, 0x1c
push 1
push edx
push edi
mov dword [esi + 0x18], eax
call fcn.00447e00
add esp, 0xc
cmp dword [esp + 0x14], 0
mov dword [esi + 8], eax
je 0x45a78f
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.00420a20
mov esi, eax
test esi, esi
je 0x45a727
push 0x30
push 0
push esi
call fcn.004a2540
add esp, 0xc
or ecx, 0xffffffff
mov byte [esi], 0x13
mov word [esi + 0x1e], cx
mov dword [esi + 0x2c], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 0x48], eax
test esi, esi
jne 0x45a751
mov ecx, dword [esp + 0x14]
push ecx
mov edx, eax
push edx
call fcn.00447530
mov eax, dword [esp + 0x50]
push esi
push eax
call fcn.00447530
add esp, 0x10
jmp 0x45a77a
mov eax, dword [esp + 0x14]
mov ecx, 0x100
mov dword [esi + 8], eax
test word [eax + 2], cx
je 0x45a76f
mov edx, ecx
or word [esi + 2], dx
mov eax, dword [eax + 0x14]
mov dword [esi + 0x14], eax
mov ebx, esi
call fcn.00446f40
mov ebx, dword [esp + 0x50]
push 0
push 1
push esi
push edi
mov dword [esp + 0x24], esi
call fcn.004476c0
add esp, 0x10
mov dword [ebx + 0xc], eax
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
push edx
push edi
mov byte [edi + 0xea], cl
call fcn.00447530
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00447530
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004480f0
mov esi, dword [esp + 0x4c]
add esp, 0x14
test esi, esi
je 0x45a7d9
push esi
push edi
call fcn.004624d0
push esi
push edi
call fcn.00420800
add esp, 0x10
cmp byte [edi + 0x1e], 1
jne 0x45a7ef
mov eax, edi
call fcn.00459440
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x3c]
cmp eax, 6
je 0x45a815
cmp eax, 9
jne 0x45a80c
cmp dword [ebp + 0x14], 0
jne 0x45a80c
mov eax, dword [esp + 0x28]
mov byte [eax], 0x6a
jmp 0x45a81c
mov eax, dword [esp + 0x28]
mov byte [eax], 0x6b
jmp 0x45a81c
mov eax, dword [esp + 0x28]
mov byte [eax], 0x74
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x44]
mov dword [ebx + 0x14], edx
mov eax, dword [eax + 0x44]
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x18], eax
setne al
add al, 0x6a
mov dword [ecx + edx*4 + 0x1c], ebx
mov byte [ebx + 8], al
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret