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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6476bb
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, ecx
test dword [ebx + 0x13c4], 0x40000000
jne 0x535378
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x535378
push str.WEAPON
call fcn.00590e00
test eax, eax
je 0x535378
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.00530560
fld dword [esp + 0x20]
fadd dword [ebx + 0x1278]
xor ebp, ebp
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [ebx + 0x127c]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [ebx + 0x1280]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [ebx + 0x1278]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [ebx + 0x127c]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [ebx + 0x1280]
mov byte [ebx + 0x15b0], 1
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x30]
mov ecx, dword [esp + 8]
fsub dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0xc]
fld dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
fsub dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
test eax, eax
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x44], edx
jle 0x535377
fild dword [esp + 0x70]
push esi
push edi
fstp dword [esp + 0x18]
lea esp, [esp]
lea eax, [ebp + 1]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x10]
mov dword [esp + 0x34], ecx
fld dword [esp + 0x10]
mov dword [esp + 0x38], edx
fdiv dword [esp + 0x18]
mov dword [esp + 0x3c], eax
push 0x40
fstp dword [esp + 0x14]
fld dword [esp + 0x58]
fmul dword [esp + 0x14]
fstp dword [esp + 0x24]
fld dword [esp + 0x54]
fmul dword [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [esp + 0x50]
fmul dword [esp + 0x14]
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
call fcn.00614bf2
mov esi, eax
add esp, 4
test esi, esi
je 0x535222
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, 0xc
mov eax, 0x4040404
lea edi, [esi + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esi + 0x3c], 0
jmp 0x535224
xor esi, esi
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, esi
sub edx, edi
mov dword [esi], ecx
mov dword [esp + 0x1c], esi
mov dword [esi + 4], ebp
mov eax, edi
add edx, 8
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x535240
push 0x388
mov ecx, 0xb21d88
call fcn.0057d900
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x6c], 0
je 0x535272
mov ecx, eax
call fcn.00584210
jmp 0x535274
xor eax, eax
mov ecx, dword [esp + 0x7c]
push ecx
push edi
mov ecx, eax
mov dword [esp + 0x74], 0xffffffff
mov dword [esi + 0x3c], eax
call fcn.0058b7a0
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x3c]
push ebp
push edi
push edx
call fcn.00583a00
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x3c]
push ebp
push edi
push eax
call fcn.00582550
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
sub esp, 8
fchs
mov dword [ebx + 0x1284], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsub dword [0x64ff20]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00616f24
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 0x48]
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00616fd4
fstp dword [esp + 0x28]
add esp, 8
fld dword [esp + 0x20]
lea ecx, [esp + 0x40]
fstp dword [esp + 0x48]
mov dword [esp + 0x44], 0
call fcn.004181c0
fld dword [esp + 0x48]
mov ecx, dword [esi + 0x3c]
fchs
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x50]
fchs
fstp dword [esp + 4]
fld dword [esp + 0x4c]
fchs
fstp dword [esp]
call fcn.0057f1e0
mov edx, dword [esi + 0x3c]
push edx
mov ecx, 0xb1c140
call fcn.0058d320
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x15a0]
call fcn.00534570
mov ebp, dword [esp + 0x14]
cmp ebp, dword [esp + 0x78]
jl 0x535170
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x58]
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc