Function at 0x475900
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4edbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6341d4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push 1
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
call fcn.0049d6f0
push ebx
push 4
lea eax, [ebp - 0x14]
push eax
push 2
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x7530
call fcn.0049d080
mov eax, dword [esi + 4]
push ebx
push ebx
push SysReAllocStringLen
push 1
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0049e06c
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x475b1b
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0x20000013
mov ecx, edi
mov dword [ebp - 0x20], 4
call fcn.0049d0ed
cmp eax, ebx
je 0x475b07
mov eax, dword [ebp - 0x28]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x475b07
mov esi, dword [esi + 8]
push 0x5faa6c
push esi
mov byte [ebp - 4], 3
call fcn.004b1f2e
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x475af6
mov ecx, edi
call fcn.0046ce90
push 0x401
lea ecx, [ebp]
push ebx
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], ebx
call fcn.004af990
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
add esp, 0xc
push 0x400
lea eax, [ebp]
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x475aea
lea esp, [esp]
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp]
push esi
push ecx
call fcn.004b2588
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add esp, 0x10
add ebx, esi
mov esi, 0
adc eax, esi
mov ecx, eax
mov dword [ebp - 0x2c], eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], ebx
fild qword [ebp - 0x48]
mov dword [ebp - 0x40], esi
fild qword [ebp - 0x40]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
fchs
mov dword [ebp - 0x50], edx
faddp st(1)
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
fmul qword [0x4f5a38]
fild qword [ebp - 0x50]
fild qword [ebp - 0x38]
fchs
faddp st(1)
fdivp st(1)
call fcn.004af7a0
mov ecx, dword [ebp - 0x24]
sub eax, dword [ecx + 0xc]
add ecx, 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x401
lea eax, [ebp]
push esi
push eax
call fcn.004af990
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
add esp, 0xc
push 0x400
lea eax, [ebp]
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
jne 0x475a30
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x475b07
push eax
call fcn.004b1fbc
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
lea ecx, [ebp - 0x64]
call fcn.0049dcc7
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0049ddaa
mov eax, dword [ebp - 0x18]
jmp 0x475b4e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004af517
add ebp, 0x408
mov esp, ebp
pop ebp
ret