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

Disassembly:
mov al, byte [0x60f77c]
sub esp, 0x44
test al, al
push ebx
push ebp
push esi
push edi
je 0x46425f
push 0x56f224
call fcn.0046d7b0
mov eax, dword [0x60f708]
mov edx, dword [0x56f1b4]
mov ecx, dword [0x60f70c]
mov ebp, dword [0x56f1b8]
mov edi, dword [0x56f1bc]
sub eax, edx
mov edx, dword [0x60f710]
sub ecx, ebp
sar eax, 6
mov dword [esp + 0x48], eax
sub edx, edi
lea eax, [esp + 0x48]
sar ecx, 6
sar edx, 6
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.0046d870
call fcn.0046da40
mov eax, dword [esp + 0x54]
mov ecx, eax
imul ecx, eax
mov eax, dword [esp + 0x50]
mov edx, eax
imul edx, eax
mov eax, dword [esp + 0x4c]
add ecx, edx
mov edx, eax
imul edx, eax
add ecx, edx
push ecx
call fcn.0046d430
mov edi, eax
lea eax, [esp + 0x50]
push eax
shl edi, 6
call fcn.0046d790
lea ecx, [esp + 0x54]
lea edx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x60], 0
call fcn.00470430
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.0046d130
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
add esp, 0x20
lea ecx, [edx + edx*4]
lea ecx, [ecx + ecx*4]
sar ecx, 0xc
mov dword [esp + 0x24], ecx
lea ecx, [eax - 0x400]
and ecx, 0xfff
shl ecx, 2
movsx esi, word [ecx + 0x610c4a]
lea esi, [esi + esi*8]
sar esi, 0xc
mov dword [esp + 0x2c], esi
lea esi, [eax + 0x400]
and esi, 0xfff
shl esi, 2
movsx eax, word [esi + 0x610c4a]
lea eax, [eax + eax*8]
sar eax, 0xc
mov dword [esp + 0x20], eax
lea eax, [edx + edx*2]
shl eax, 1
sar eax, 0xc
mov dword [esp + 0x28], eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
sar eax, 0xc
lea eax, [eax + eax*4]
shl eax, 6
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*8]
lea eax, [eax + edx*4]
shl eax, 2
cdq
and edx, 0xfff
add eax, edx
mov edx, dword [0x60f76c]
mov ebp, eax
movsx eax, word [ecx + 0x610c48]
sar ebp, 0xc
lea eax, [eax + eax*8]
add ebp, edx
sar eax, 0xc
lea eax, [eax + eax*4]
shl eax, 6
cdq
and edx, 0x1ff
add eax, edx
mov ecx, eax
mov eax, dword [0x60f76c]
sar ecx, 9
add ecx, eax
movsx eax, word [esi + 0x610c48]
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*8]
sar eax, 0xc
lea eax, [eax + eax*4]
shl eax, 6
cdq
and edx, 0x1ff
add eax, edx
mov edx, dword [0x60f76c]
sar eax, 9
add eax, edx
mov dword [esp + 0x1c], eax
lea eax, [ebx + ebx*2]
shl eax, 1
sar eax, 0xc
lea eax, [eax + eax*4]
shl eax, 6
cdq
and edx, 0x1ff
add eax, edx
mov edx, dword [0x60f76c]
mov esi, eax
sar esi, 9
add esi, edx
cmp edi, 0x4000
jbe 0x463a53
mov eax, 8
jmp 0x463a60
mov eax, 0x4000
sub eax, edi
shr eax, 8
add eax, 8
mov edx, dword [0x6b4ca8]
imul edx, eax
and edx, 0xfff
mov dword [esp + 0x14], 0
movsx edi, word [edx*4 + 0x610c48]
mov eax, edi
sar eax, 0x1f
mov edx, eax
xor edx, edi
mov edi, edx
shl edi, 8
sub edi, edx
mov edx, eax
shl edx, 8
mov ebx, edi
sub edx, eax
sub ebx, edx
mov edx, 0xc7
shr ebx, 0xc
mov eax, ebx
sub edx, ebp
shl eax, 8
mov dword [esp + 0x30], edx
mov edx, 0xc7
or al, 0xff
sub edx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jmp 0x463ac8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, dword [0x56fb04]
lea edx, [edi + 0x14]
mov dword [0x56fb04], edx
mov dword [edi + 4], eax
mov al, byte [0x54d341]
test al, al
jne 0x463af4
push 0x54abf0
call fcn.0046cb90
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dx, word [esp + 0x30]
mov eax, dword [esp + 0x24]
mov word [edi + 0xa], dx
mov edx, dword [esp + 0x14]
add eax, 0x1b0
mov word [edi + 8], ax
mov eax, dword [esp + 0x2c]
test edx, edx
je 0x463b1a
mov eax, dword [esp + 0x20]
add eax, 0x1b0
test edx, edx
mov word [edi + 0xc], ax
je 0x463b2b
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x34]
mov eax, 0xc7
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov word [edi + 0xe], ax
push 0x56eb54
lea eax, [ecx + 0x1b0]
mov word [edi + 0x12], dx
mov word [edi + 0x10], ax
call fcn.0046cb90
mov eax, dword [esp + 0x18]
add esp, 4
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x463ac0
xor edi, edi
push edi
push 1
call fcn.00506440
fild dword [0x568158]
mov eax, dword [0x628614]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x3c]
fild qword [esp + 0x44]
mov ecx, 0xc7
mov dword [esp + 0x48], edi
sub ecx, edx
mov edx, dword [0x61b5fc]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fdiv dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x28]
mov ecx, 0xc7
add eax, 0x1b0
sub ecx, ebp
mov edx, dword [esp + 0x2c]
or ebx, 0xffffff00
add edx, 0x1b0
shl ebx, 8
fstp dword [esp + 0x18]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x24]
fild dword [0x568154]
fstp dword [esp + 0x3c]
fild qword [esp + 0x44]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fdiv dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, 0xc7
sub eax, esi
fstp dword [esp + 0x1c]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x1b0
fstp dword [esp + 0x38]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x18]
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x28]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
fstp dword [esp + 0x2c]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
fstp dword [esp + 0x44]
fild dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov edx, 0xc7
sub edx, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x24]
fild dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add eax, 0x1b0
push 0x3e4ccccd
push ebx
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fmul dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push edi
push edi
fstp dword [esp + 0x30]
fild dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x5c]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x34]
push ebx
push edi
push edi
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x4c]
push ebx
push edi
push edi
push edx
push eax
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
push ebx
push edi
push edi
push ecx
push edx
call fcn.00507910
mov eax, dword [0x60f75c]
add esp, 0x5c
mov eax, dword [eax + 4]
push edi
push eax
call fcn.00462bb0
mov esi, eax
add esp, 8
cmp esi, edi
je 0x46425f
mov ebx, dword [esi + 4]
mov eax, dword [0x60f768]
and ebx, 0xff323280
or ebx, 0x323280
cmp eax, edi
je 0x463de1
mov ecx, dword [0x6b4ca8]
shl ecx, 6
and ecx, 0xfff
movsx eax, word [ecx*4 + 0x610c48]
imul eax, eax, 0x7f
sar eax, 0xc
mov edx, dword [0x6b4ca8]
mov ebp, eax
shl edx, 6
and edx, 0xfff
and ebx, 0xff000000
sar ebp, 0x1f
movsx ecx, word [edx*4 + 0x610c48]
xor eax, ebp
lea edx, [ecx + ecx*4]
sub eax, ebp
add eax, 0x80
lea ecx, [ecx + edx*8]
lea ecx, [ecx + ecx*4]
sar ecx, 0xc
mov edx, ecx
sar edx, 0x1f
mov edi, edx
xor ecx, edx
shl edi, 0x18
sub edi, edx
lea ecx, [ecx + edi + 0x32]
shl ecx, 8
mov edx, ecx
or edx, eax
mov eax, dword [0x60f768]
or ebx, edx
sub eax, 2
mov dword [0x60f768], eax
jns 0x463de1
mov dword [0x60f768], 0
mov eax, dword [0x60f75c]
push 0x28
push 0x20
push eax
mov eax, dword [0x60f76c]
mov ecx, 0xd7
sub ecx, eax
push esi
push ecx
push 0x1ca
call fcn.00462c30
mov cl, byte [esi + 7]
mov di, word [esi + 8]
or cl, 2
and word [esi + 0x16], 0xff9f
mov byte [esi + 7], cl
mov cx, word [esi + 0x10]
movsx edx, di
movsx eax, cx
sub eax, edx
mov dword [esi + 4], ebx
cdq
sub eax, edx
push str.No_Compass_texture.
mov ebp, eax
sar ebp, 1
add word [esi + 0x18], bp
add word [esi + 0x20], bp
add edi, ebp
add ecx, ebp
mov word [esi + 8], di
mov word [esi + 0x10], cx
mov eax, dword [0x60f75c]
mov edi, dword [eax + 4]
test edi, edi
setne cl
push ecx
call fcn.004015b0
mov edx, dword [0x60f75c]
xor ecx, ecx
push 0
mov eax, dword [edx + 4]
mov cx, word [eax + 2]
push ecx
call fcn.00506440
mov edi, ebx
mov edx, ebx
and edi, 0xff
mov ecx, dword [0x628614]
fild dword [0x568158]
or edi, 0xffffff00
mov eax, ebx
shr edx, 8
shl edi, 8
and edx, 0xff
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x64]
or edi, edx
mov ecx, dword [0x61b5fc]
shr eax, 0x10
shl edi, 8
and eax, 0xff
or edi, eax
xor eax, eax
mov dword [esp + 0x60], eax
fild qword [esp + 0x5c]
movsx edx, word [esi + 0x22]
fstp dword [esp + 0x5c]
fld dword [esp + 0x64]
fdiv dword [esp + 0x5c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x38]
fild dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fmul dword [esp + 0x38]
fstp dword [esp + 0x58]
fild dword [0x568154]
fstp dword [esp + 0x64]
mov dword [esp + 0x60], eax
push eax
fild qword [esp + 0x60]
movsx edx, word [esi + 0x20]
fstp dword [esp + 0x60]
fld dword [esp + 0x68]
fdiv dword [esp + 0x60]
mov dword [esp + 0x68], edx
push edi
movsx ecx, word [esi + 0x1a]
movsx edx, word [esi + 0x18]
push 0x3f800000
push 0x3f733333
fstp dword [esp + 0x4c]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x4c]
mov dword [esp + 0x74], ecx
movsx ecx, word [esi + 0x12]
fstp dword [esp + 0x6c]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x48]
mov dword [esp + 0x74], edx
movsx edx, word [esi + 0x10]
fstp dword [esp + 0x64]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x4c]
mov dword [esp + 0x74], ecx
movsx ecx, word [esi + 0xa]
fstp dword [esp + 0x60]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x48]
mov dword [esp + 0x74], edx
movsx edx, word [esi + 8]
fstp dword [esp + 0x5c]
fild dword [esp + 0x74]
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fmul dword [esp + 0x4c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
fstp dword [esp + 0x5c]
fild dword [esp + 0x78]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fmul dword [esp + 0x4c]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x68]
fstp dword [esp + 0x5c]
fild dword [esp + 0x7c]
push edi
push 0x3f800000
push 0x3d4ccccd
push ecx
fstp dword [esp + 0x8c]
fld dword [esp + 0x8c]
fmul dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
push edx
push edi
push eax
fstp dword [esp + 0x98]
push 0x3f733333
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
push edi
push eax
mov eax, dword [esp + 0x8c]
push 0x3d4ccccd
push eax
push ecx
call fcn.00507910
mov edx, dword [0x60f75c]
add esp, 0x7c
mov eax, dword [edx + 4]
push 0
push eax
call fcn.00462bb0
mov esi, eax
add esp, 8
test esi, esi
je 0x46425f
mov eax, dword [0x60f75c]
push 0x28
push 0x20
push eax
mov eax, dword [0x60f76c]
mov ecx, 0xd7
sub ecx, eax
push esi
push ecx
push 0x1ca
call fcn.00462c30
mov cl, byte [esi + 7]
and word [esi + 0x16], 0xff9f
sub word [esi + 8], bp
sub word [esi + 0x10], bp
sub word [esi + 0x18], bp
or cl, 2
mov byte [esi + 7], cl
mov cl, byte [esi + 0x14]
xor eax, eax
dec cl
mov al, byte [esi + 0xc]
sub word [esi + 0x20], bp
mov byte [esi + 0x1c], cl
mov byte [esi + 0xc], cl
mov byte [esi + 0x24], al
mov byte [esi + 0x14], al
mov dword [esi + 4], ebx
mov ebx, dword [0x628614]
fild dword [0x568158]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0
movsx ebx, word [esi + 0x22]
fstp dword [esp + 0x54]
fild qword [esp + 0x4c]
mov dword [esp + 0x50], 0
mov bp, word [esi + 0x20]
mov dx, word [esi + 0x18]
mov ax, word [esi + 8]
fstp dword [esp + 0x4c]
fld dword [esp + 0x54]
fdiv dword [esp + 0x4c]
mov dword [esp + 0x54], ebx
mov ebx, dword [0x61b5fc]
mov dword [esp + 0x4c], ebx
mov cx, word [esi + 0x10]
movsx ebx, bp
movsx edx, dx
fstp dword [esp + 0x28]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
fstp dword [esp + 0x48]
fild dword [0x568154]
fstp dword [esp + 0x54]
fild qword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x54]
fdiv dword [esp + 0x4c]
mov dword [esp + 0x54], ebx
movsx ebx, word [esi + 0x1a]
fstp dword [esp + 0x2c]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
fstp dword [esp + 0x4c]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
mov dword [esp + 0x54], edx
fstp dword [esp + 0x44]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x2c]
movsx edx, word [esi + 0x12]
fstp dword [esp + 0x40]
mov dword [esp + 0x54], edx
push 0
fild dword [esp + 0x58]
movsx ecx, cx
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fmul dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x4c]
movsx edx, word [esi + 0xa]
fstp dword [esp + 0x40]
fild dword [esp + 0x58]
movsx eax, ax
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fmul dword [esp + 0x30]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x50]
push edi
push 0x3f800000
fstp dword [esp + 0x44]
fild dword [esp + 0x60]
push 0x3d4ccccd
push ecx
mov ecx, dword [esp + 0x54]
push edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fmul dword [esp + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push edi
fstp dword [esp + 0x50]
fild dword [esp + 0x70]
push 0x3f800000
push 0x3f733333
push eax
mov eax, dword [esp + 0x60]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fmul dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x60]
push edi
push 0
push 0x3d4ccccd
push edx
fstp dword [esp + 0x90]
mov edx, dword [esp + 0x90]
push eax
push edi
push 0
push 0x3f733333
push ecx
push edx
call fcn.00507910
add esp, 0x6c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret