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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602e50
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
call fcn.004973d0
mov ecx, esi
call fcn.004975f0
mov esi, dword [0x6f4494]
mov ecx, esi
call fcn.00578dc0
test al, al
je 0x497fd3
mov ecx, esi
call fcn.00578b90
add eax, 8
cmp dword [eax + 0x14], 0x10
jb 0x4978c9
mov eax, dword [eax]
push eax
call fcn.00469d80
push eax
push str._s_map__s_point.txt
lea eax, [esp + 0x268]
push 0x41
push eax
call fcn.005cbc5f
add esp, 0x14
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.0049b3c0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2b8], 0
push eax
lea eax, [esp + 0x260]
push eax
call fcn.00552eb0
add esp, 8
test al, al
jne 0x497942
lea eax, [esp + 0x25c]
push eax
push str._CPythonMiniMap::__LoadAtlasMarkInfo_File_Load__s_ERROR_n
call fcn.0052acb0
add esp, 8
jmp 0x497fb2
push 0x654180
lea ecx, [esp + 0xe8]
call fcn.0045b980
push str.OPCPVP
lea ecx, [esp + 0x100]
mov byte [esp + 0x2bc], 1
call fcn.0045b980
push str.OPCPVPSELF
lea ecx, [esp + 0x118]
mov byte [esp + 0x2bc], 2
call fcn.0045b980
push 0x6541dc
lea ecx, [esp + 0x130]
mov byte [esp + 0x2bc], 3
call fcn.0045b980
push str.MONSTER
lea ecx, [esp + 0x148]
mov byte [esp + 0x2bc], 4
call fcn.0045b980
push str.WARP
lea ecx, [esp + 0x160]
mov byte [esp + 0x2bc], 5
call fcn.0045b980
push str.WAYPOINT
lea ecx, [esp + 0x178]
mov byte [esp + 0x2bc], 6
call fcn.0045b980
push fcn.0045a9a0
push fcn.0045a970
push 7
push 0x18
lea eax, [esp + 0x19c]
mov byte [esp + 0x2c8], 7
push eax
call fcn.005cb38d
xor eax, eax
mov byte [esp + 0x2b8], 8
mov dword [esp + 0x20], eax
cmp dword [esp + 0x14], eax
jbe 0x497f94
jmp 0x497a30
push eax
push 0x654294
lea eax, [esp + 0x240]
push 0x21
push eax
call fcn.005cbc5f
add esp, 0x10
mov dword [esp + 0x44], 0xf
cmp byte [esp + 0x238], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x497a6b
xor ecx, ecx
jmp 0x497a7e
lea ecx, [esp + 0x238]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497a75
sub ecx, edx
push ecx
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x38]
call fcn.0045a870
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004773f0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x497ad9
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x497ab6
mov eax, dword [eax]
push ecx
push eax
push dword [esp + 0x48]
lea ecx, [esp + 0x3c]
push 0
call fcn.00468650
test eax, eax
mov eax, dword [esp + 0x10]
js 0x497ad9
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
jmp 0x497ae1
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
cmp eax, dword [ecx]
sete bl
cmp dword [esp + 0x44], 0x10
jb 0x497af9
push dword [esp + 0x30]
call fcn.004dbb70
add esp, 4
test bl, bl
jne 0x497f81
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], bl
cmp byte [esp + 0x238], bl
jne 0x497b22
xor ecx, ecx
jmp 0x497b39
lea ecx, [esp + 0x238]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497b30
sub ecx, edx
push ecx
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x38]
call fcn.0045a870
lea eax, [esp + 0x30]
mov byte [esp + 0x2b8], 9
push eax
lea ecx, [esp + 0x14]
call fcn.0049a9e0
mov byte [esp + 0x2b8], 8
mov esi, eax
cmp dword [esp + 0x44], 0x10
jb 0x497b7e
push dword [esp + 0x30]
call fcn.004dbb70
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov edx, dword [esi]
cmp dword [edx + 0x14], 0x10
jb 0x497b9d
mov edx, dword [edx]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
cmp byte [edx], 0
jne 0x497bbb
xor ecx, ecx
jmp 0x497bc9
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497bc0
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x68]
call fcn.0045a870
mov byte [esp + 0x2b8], 0xa
mov edx, dword [esi]
add edx, 0x18
cmp dword [edx + 0x14], 0x10
jb 0x497be9
mov edx, dword [edx]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp byte [edx], 0
jne 0x497c0d
xor ecx, ecx
jmp 0x497c1b
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497c12
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.0045a870
mov byte [esp + 0x2b8], 0xb
mov edx, dword [esi]
add edx, 0x30
cmp dword [edx + 0x14], 0x10
jb 0x497c3e
mov edx, dword [edx]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
cmp byte [edx], 0
jne 0x497c5c
xor ecx, ecx
jmp 0x497c6a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497c61
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.0045a870
mov byte [esp + 0x2b8], 0xc
mov edx, dword [esi]
add edx, 0x48
cmp dword [edx + 0x14], 0x10
jb 0x497c8a
mov edx, dword [edx]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
cmp byte [edx], 0
jne 0x497cb1
xor ecx, ecx
jmp 0x497cbf
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497cb6
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.0045a870
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
mov byte [esp + 0x2b8], 0xe
lea esi, [esp + 0xe4]
mov edx, dword [esp + 0x70]
mov bl, byte [esp + 0xa8]
mov dword [esp + 0x1c], 0
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
mov edi, dword [esi + 0x10]
jb 0x497d21
mov eax, dword [esi]
mov dword [esp + 0x18], eax
jmp 0x497d25
mov dword [esp + 0x18], esi
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x60]
mov eax, edi
cmovae ecx, dword [esp + 0x60]
cmp edx, edi
cmovb eax, edx
push eax
push dword [esp + 0x1c]
push ecx
call fcn.004685e0
mov edx, dword [esp + 0x7c]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x497d5b
cmp edx, edi
jb 0x497d71
cmp edx, edi
setne cl
mov eax, dword [esp + 0x1c]
test ecx, ecx
movzx ebx, bl
movzx eax, al
cmove ebx, eax
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x1c]
add esi, 0x18
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0xe
jl 0x497d10
cmp dword [esp + 0x8c], 0x10
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
push eax
call fcn.005cc402
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
fstp dword [esp + 0xb4]
cmovae eax, dword [esp + 0x4c]
push eax
call fcn.005cc402
add esp, 8
lea eax, [esp + 0x90]
lea ecx, [esp + 0xcc]
fstp dword [esp + 0xb4]
push 0xffffffffffffffff
push 0
push eax
call fcn.0045ad40
mov ebx, dword [esp + 0x24]
movss xmm0, dword [esp + 0xb0]
divss xmm0, dword [ebx + 0x334]
lea ecx, [ebx + 0x10c]
mulss xmm0, dword [ebx + 0x33c]
movss dword [esp + 0x18], xmm0
call fcn.0054c350
movss xmm1, dword [esp + 0x18]
lea ecx, [ebx + 0x10c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x65e80c]
subss xmm1, xmm0
movss xmm0, dword [esp + 0xb4]
divss xmm0, dword [ebx + 0x338]
movss dword [esp + 0xb8], xmm1
mulss xmm0, dword [ebx + 0x340]
movss dword [esp + 0x18], xmm0
call fcn.0054c310
movss xmm1, dword [esp + 0x18]
movd xmm0, eax
movzx eax, byte [esp + 0xa8]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x65e80c]
subss xmm1, xmm0
movss dword [esp + 0xbc], xmm1
sub eax, 3
je 0x497e8c
sub eax, 2
jne 0x497e9f
lea ecx, [ebx + 0x354]
jmp 0x497e92
lea ecx, [ebx + 0x348]
lea eax, [esp + 0xa8]
push eax
call fcn.0049a880
cmp dword [esp + 0xe0], 0x10
jb 0x497eb8
push dword [esp + 0xcc]
call fcn.004dbb70
add esp, 4
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jb 0x497eef
push dword [esp + 0x90]
call fcn.004dbb70
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
jb 0x497f20
push dword [esp + 0x48]
call fcn.004dbb70
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x497f4b
push dword [esp + 0x78]
call fcn.004dbb70
add esp, 4
mov byte [esp + 0x2b8], 8
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x497f81
push dword [esp + 0x60]
call fcn.004dbb70
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x14]
jb 0x497a30
push fcn.0045a9a0
push 0xe
push 0x18
lea eax, [esp + 0xf0]
mov byte [esp + 0x2c4], 0
push eax
call fcn.005cb3ef
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.0049af40
push dword [esp + 0x10]
call fcn.004dbb70
add esp, 4
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret