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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [0xbdcd40], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
je 0x459e52
movzx eax, word [edi + 4]
mov ebx, dword [eax*4 + 0x20a514c]
mov dword [esp + 0x1c], ebx
cmp eax, 0x1194
jae 0x459e52
cmp dword [ebx + 4], 3
jne 0x459e52
movzx eax, word [ebx + 0x78]
cmp eax, 1
je 0x4596cd
cmp eax, 6
jne 0x459e52
cmp byte [ebx + 0xa], 0
jg 0x459e52
cmp byte [ebx + 0x9c0], 0
jne 0x459e52
test byte [ebx + 0x384], 3
jne 0x459e52
cmp byte [ebx + 0x3b5], 0
jne 0x459e52
movzx eax, word [edi + 6]
mov esi, dword [0x63b698]
mov ecx, eax
mov edx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [0x63b694]
mov ecx, eax
mov dword [esp + 0x10], edx
cmp ecx, esi
je 0x459767
mov edx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
nop dword [eax]
mov esi, dword [ecx]
test esi, esi
jle 0x459754
mov edx, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jne 0x459754
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x459763
mov edx, dword [esp + 0x18]
cmp dword [edi + 0xc], esi
jge 0x4597d9
add ecx, 0x1c
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
cmp ecx, edx
jne 0x459730
mov edx, dword [esp + 0x10]
mov eax, dword [0x63b6a0]
mov ecx, dword [0x63b6a4]
cmp eax, ecx
je 0x459785
cmp dword [eax], edx
je 0x45994f
add eax, 0x30
cmp eax, ecx
jne 0x459776
mov eax, dword [0x63b6ac]
mov ecx, dword [0x63b6b0]
cmp eax, ecx
je 0x4597a3
cmp dword [eax], edx
je 0x45994f
add eax, 0x1c
cmp eax, ecx
jne 0x459794
mov eax, dword [0x63b6b8]
mov ecx, dword [0x63b6bc]
cmp eax, ecx
je 0x459e52
cmp dword [eax], edx
je 0x45994f
add eax, 0xc
cmp eax, ecx
jne 0x4597b6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x63b698]
mov edx, dword [esp + 0x10]
cmp dword [eax], edx
je 0x45984a
add eax, 0x1c
cmp eax, ecx
jne 0x4597e3
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x35c
push eax
lea eax, [esp + 0x34]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x38]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x459823
cmp dword [eax + 0x10], 0x35c
jle 0x459825
mov eax, ecx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, ecx
jne 0x459893
push 0x35c
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x459896
cmp dword [eax + 0x18], 0
je 0x4597ee
push dword [ebx]
mov dword [ebx + 0x9f0], edx
movzx ecx, word [edi + 8]
mov eax, ecx
mov word [esp + 0x20], 0x5c1
shr eax, 8
mov byte [esp + 0x23], al
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x26], 0x30
mov byte [esp + 0x28], cl
call fcn.004d0e60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
add eax, 0x18
push eax
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebx]
push 0xb90558
call fcn.004cdc70
add esp, 0x24
mov dword [esp + 0x14], 0x35c
lea eax, [esp + 0x14]
mov ecx, 0xa9b83c
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00405650
mov eax, dword [esp + 0x38]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4598e7
cmp dword [eax + 0x10], 0x35c
jle 0x4598e9
mov eax, ecx
cmp eax, ecx
jne 0x459929
push 0x35c
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov eax, 0xa9b7bc
push eax
movzx eax, word [edi + 8]
push eax
push ebx
call fcn.004e9340
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
add eax, 0x18
push eax
movzx eax, word [edi + 8]
push eax
push ebx
call fcn.004e9340
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4
movzx eax, word [edi + 8]
mov ecx, 0x63b690
push eax
push edx
push ebx
call fcn.00458310
test al, al
je 0x459e52
movzx eax, word [edi + 8]
mov esi, dword [esp + 0x10]
push eax
push esi
push ebx
call fcn.00458d00
test al, al
je 0x459e52
mov eax, dword [edi + 0x10]
test eax, eax
je 0x45999c
push eax
movzx eax, word [edi + 8]
push eax
push esi
push ebx
call fcn.00459020
test al, al
je 0x459e52
movzx eax, word [edi + 8]
mov edi, esi
push eax
push edi
push ebx
call fcn.00459250
test al, al
je 0x459e52
mov dword [ebx + 0x9e4], 0xffffffff
mov ecx, 0x7509e0
mov dword [ebx + 0x9e8], 0xffffffff
mov dword [ebx + 0x9ec], 0xffffffff
mov dword [esp + 0x40], 0x1f714c1
movzx eax, word [ebx]
mov word [esp + 0x44], ax
movq xmm0, qword [ebx + 0x86]
movq qword [esp + 0x46], xmm0
movzx eax, word [ebx + 0x8e]
mov word [esp + 0x4e], ax
mov al, byte [ebx + 0x90]
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x14]
mov word [esp + 0x52], ax
lea eax, [esp + 0x40]
push 0x14
push eax
call fcn.00440610
mov esi, dword [0x63b6ac]
mov ecx, dword [0x63b6b0]
cmp esi, ecx
je 0x459b8f
mov dword [esp + 0x2c], 0x2000
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
jle 0x459b84
cmp eax, edi
jne 0x459b84
cmp dword [esi + 0x18], 0
jle 0x459b84
cmp dword [esi + 4], 0
jl 0x459b84
cmp dword [esi + 8], 0
jl 0x459b84
mov edx, 0xc90
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x24], edx
nop dword [eax]
mov edi, dword [ebx + 0x390]
add edi, edx
mov dword [esp + 0x28], edi
movzx eax, word [edi + 4]
mov ecx, eax
test ax, ax
js 0x459b60
cmp cx, word [esp + 0x2c]
jge 0x459b60
mov ecx, dword [esi + 4]
shl ecx, 9
add ecx, dword [esi + 8]
cwde
cmp eax, ecx
jne 0x459b60
mov edx, dword [esi + 0xc]
test edx, edx
js 0x459adc
movsx eax, word [edi + 6]
xor ecx, ecx
cmp eax, edx
sete cl
jmp 0x459ae1
mov ecx, 1
mov edi, dword [esi + 0x10]
lea edx, [ecx + 1]
test edi, edi
js 0x459afb
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x9d]
cmp eax, edi
cmovne edx, ecx
mov edi, dword [esi + 0x14]
lea ecx, [edx + 1]
test edi, edi
js 0x459b15
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x9c]
cmp eax, edi
cmovne ecx, edx
cmp ecx, 3
jb 0x459b5c
push dword [esp + 0x18]
push dword [ebx]
call fcn.0049de90
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov ecx, dword [ebx]
push 5
mov word [esp + 0x34], 0x5c1
mov byte [esp + 0x36], 0x28
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 1
call fcn.00526480
mov eax, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x18]
jge 0x459b7a
mov edx, dword [esp + 0x24]
inc dword [esp + 0x18]
add edx, 0x10c
mov dword [esp + 0x24], edx
cmp edx, 0x4f90
jl 0x459a90
mov ecx, dword [0x63b6b0]
mov edi, dword [esp + 0x10]
add esi, 0x1c
cmp esi, ecx
jne 0x459a40
mov esi, dword [0x63b6a0]
cmp esi, dword [0x63b6a4]
je 0x459c08
mov eax, dword [esi]
test eax, eax
jle 0x459bfd
cmp eax, edi
jne 0x459bfd
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x459bc5
sub dword [ebx + 0xe4], eax
mov edx, dword [ebx + 0xe4]
mov ecx, dword [ebx]
call fcn.004e9640
mov edx, dword [esi + 0x14]
test edx, edx
jg 0x459bde
cmp dword [esi + 0x18], 0
jg 0x459bde
cmp dword [esi + 0x1c], 0
jg 0x459bde
cmp dword [esi + 0x20], 0
jle 0x459bfd
mov eax, dword [esi + 0x20]
neg edx
neg eax
push ecx
mov ecx, dword [ebx]
push eax
mov eax, dword [esi + 0x1c]
neg eax
push eax
mov eax, dword [esi + 0x18]
neg eax
push eax
call fcn.004740a0
add esp, 0x10
add esi, 0x30
cmp esi, dword [0x63b6a4]
jne 0x459ba1
mov esi, dword [0x63b6c4]
mov ecx, dword [0x63b6c8]
cmp esi, ecx
je 0x459c6d
mov eax, dword [esi]
test eax, eax
jle 0x459c62
cmp eax, edi
jne 0x459c62
mov ecx, dword [esi + 0x10]
xor eax, eax
mov edx, dword [esi + 0xc]
test ecx, ecx
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
cmovns eax, ecx
push ecx
push eax
xor eax, eax
test edx, edx
cmovns eax, edx
push eax
xor eax, eax
test edi, edi
cmovns eax, edi
xor edx, edx
test ebx, ebx
push eax
cmovns edx, ebx
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx]
call fcn.004740a0
mov ecx, dword [0x63b6c8]
add esp, 0x10
mov edi, dword [esp + 0x10]
add esi, 0x14
cmp esi, ecx
jne 0x459c18
mov edi, dword [esp + 0x10]
push edi
push ebx
call fcn.004594b0
mov esi, dword [0x63b6dc]
mov edx, dword [0x63b6e0]
cmp esi, edx
je 0x459d32
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jle 0x459d27
cmp eax, edi
jne 0x459d27
mov ecx, dword [esi + 4]
test ecx, ecx
js 0x459d27
cmp ecx, 0x100
jge 0x459d27
imul eax, ecx, 0x4c
cmp dword [eax + 0x6460e4], ecx
lea eax, [eax + 0x6460e4]
jne 0x459d27
test eax, eax
je 0x459d27
cmp dword [eax + 0x30], 2
movzx ecx, word [esi + 8]
movzx edi, word [esi + 0xc]
mov dword [esp + 0x1c], ecx
jne 0x459cfc
push 0
call fcn.0052d9f5
mov dword [esp + 0x38], edx
add esp, 4
mov edx, dword [esi + 0x10]
shl edx, 4
sub edx, dword [esi + 0x10]
lea ecx, [eax + edx*4]
jmp 0x459d08
mov ecx, dword [esi + 0x10]
shl ecx, 4
sub ecx, dword [esi + 0x10]
shl ecx, 2
push 0
push 0
push edi
push dword [esp + 0x28]
push ecx
push dword [esi + 4]
push 1
push ebx
call fcn.00477200
mov edx, dword [0x63b6e0]
mov edi, dword [esp + 0x10]
add esi, 0x14
cmp esi, edx
jne 0x459c90
mov esi, dword [0x63b6e8]
mov ecx, dword [0x63b6ec]
cmp esi, ecx
je 0x459ded
mov eax, dword [esi]
test eax, eax
jle 0x459de2
cmp eax, edi
jne 0x459de2
push 0x1f
push ebx
call fcn.00477540
test al, al
jne 0x459ded
mov eax, dword [ebx + 0x624]
xor ecx, ecx
add eax, 4
mov dl, byte [eax]
cmp dl, 0xff
je 0x459d83
cmp dl, 0x2a
je 0x459ded
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x459d73
push ecx
push dword [0xbdaa6c]
push dword [esi + 4]
push ebx
call fcn.004d6330
test al, al
jne 0x459ded
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 0x10
mov word [esp + 0x36], ax
lea eax, [esp + 0x30]
push 0x10
push eax
push dword [ebx]
mov dword [esp + 0x3c], 0xff9c10c3
mov byte [esp + 0x40], 0xff
mov word [esp + 0x44], cx
mov word [esp + 0x46], 0
mov dword [esp + 0x48], 0
call fcn.005192f0
mov ecx, dword [0x63b6ec]
add esi, 8
cmp esi, ecx
jne 0x459d46
push dword [ebx + 0x9d8]
lea eax, [ebx + 0x86]
push eax
lea eax, [ebx + 0x7b]
push eax
push str._CustomNpcQuest___s___s_____NpcQuest__d:_Completed_
push 6
call fcn.005262e0
mov al, byte [ebx + 0x144]
lea edx, [esp + 0x44]
mov ecx, dword [ebx]
add esp, 0x14
mov byte [esp + 0x35], al
mov al, byte [ebx + 0x146]
mov dword [esp + 0x30], 0x40f307c1
push 7
mov byte [esp + 0x38], 0
mov byte [esp + 0x3a], al
call fcn.00526480
movzx eax, byte [esp + 0x35]
lea edx, [esp + 0x34]
add esp, 4
mov ecx, ebx
push eax
call fcn.005264a0
add esp, 4
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 4