Function at 0x416ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x52382c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41ec33c], 0xffffffff
push esi
jne 0x416cbe
lea eax, [ebp - 0x104]
push str.CharHelmet.txb
push eax
call fcn.004cce8a
lea ecx, [ebp - 0x104]
push ecx
call fcn.004318d0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0047e110
add esp, 0x14
xor ecx, ecx
cmp byte [ebp - 0x11c], 1
push 0
sete cl
cmp dword [0x64123c], 0
lea esi, [ecx*4 + 0x15]
push esi
je 0x416c2e
mov edx, dword [0x41ec330]
mov ecx, dword [0x5f483c]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004a5380
jmp 0x416c47
mov ecx, dword [0x41ec330]
push ecx
mov ecx, dword [0x5f483c]
lea edx, [ebp - 0x104]
push edx
call fcn.004a4f60
cmp dword [0x5eaaa0], 0
mov dword [0x41ec33c], eax
je 0x416c77
mov ecx, dword [0x5f483c]
cmp esi, 0x19
jne 0x416c67
push 0x31545844
jmp 0x416c6c
push 0x34545844
push eax
call fcn.004a4b60
mov eax, dword [0x41ec33c]
mov ecx, dword [0x5f483c]
mov edx, dword [ecx + eax*4 + 0x11414]
fild dword [ecx + eax*4 + 0x11414]
test edx, edx
jns 0x416c95
fadd dword [0x4e4558]
fstp dword [0x5ea488]
mov eax, dword [ecx + eax*4 + 0x11814]
mov dword [ebp - 0x128], eax
fild dword [ebp - 0x128]
test eax, eax
jns 0x416cb8
fadd dword [0x4e4558]
fstp dword [0x1a7d828]
cmp dword [0x1a3c7f8], 0
jne 0x416ea0
cmp dword [0x6a3104], 0
jne 0x416ea0
push ebx
push 0x525258
lea ecx, [ebp - 0x104]
push str._sDataHelmet.cd4
push ecx
call fcn.004cce8a
lea edx, [ebp - 0x104]
push 0x4e4714
push edx
call fcn.004cdd4a
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x416e9f
push edi
xor eax, eax
push ebx
push 0x20
push 1
push 0x53b424
mov dword [0x53b424], eax
mov dword [0x53b428], eax
mov dword [0x53b42c], eax
mov dword [0x53b430], eax
mov dword [0x53b434], eax
mov dword [0x53b438], eax
mov dword [0x53b43c], eax
mov dword [0x53b440], eax
call fcn.004cdfab
push 0x526a00
push 0x4e4708
push 0x53b424
call fcn.004cce8a
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add esp, 0x1c
push 0x2584
push 0
call edi
mov dword [0x1a3c7f8], eax
test eax, eax
je 0x416e95
push ebx
push 1
push 0x2584
push eax
call fcn.004cdfab
mov eax, dword [0x1a3c7f8]
mov esi, dword [eax]
imul esi, esi, 0x8c
add esp, 0x10
push esi
push 0
call edi
mov dword [0x6a3104], eax
test eax, eax
je 0x416e95
push ebx
push 1
push esi
push eax
call fcn.004cdfab
mov eax, dword [0x41ec330]
add esp, 0x10
cmp eax, 1
jne 0x416e2b
mov edx, dword [0x1a3c7f8]
xor ecx, ecx
cmp dword [edx], ecx
jle 0x416e95
fld qword [0x4e4620]
xor eax, eax
mov edx, dword [0x6a3104]
fld dword [eax + edx + 0x20]
inc ecx
fmul st(1)
add eax, 0x8c
fstp dword [eax + edx - 0x6c]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x68]
fmul st(1)
fstp dword [eax + edx - 0x68]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x64]
fmul st(1)
fstp dword [eax + edx - 0x64]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x60]
fmul st(1)
fstp dword [eax + edx - 0x60]
mov edx, dword [0x1a3c7f8]
cmp ecx, dword [edx]
jl 0x416dd9
jmp 0x416e93
cmp eax, 2
jne 0x416e95
mov eax, dword [0x1a3c7f8]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x416e95
fld qword [0x4e46c8]
xor eax, eax
mov edx, dword [0x6a3104]
fld dword [eax + edx + 0x20]
inc ecx
fmul st(1)
add eax, 0x8c
fstp dword [eax + edx - 0x6c]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x68]
fmul st(1)
fstp dword [eax + edx - 0x68]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x64]
fmul st(1)
fstp dword [eax + edx - 0x64]
mov edx, dword [0x6a3104]
fld dword [eax + edx - 0x60]
fmul st(1)
fstp dword [eax + edx - 0x60]
mov edx, dword [0x1a3c7f8]
cmp ecx, dword [edx]
jl 0x416e43
fstp st(0)
push ebx
call fcn.004cda49
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ccd49
mov esp, ebp
pop ebp
ret