Function at 0x479830
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x50e9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x65d4c0]
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.004bcaa6
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.004bc4be
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.004bd422
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x479a4b
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.004bc52b
cmp eax, ebx
je 0x479a37
mov eax, dword [ebp - 0x28]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x479a37
mov esi, dword [esi + 8]
push 0x61cedc
push esi
mov byte [ebp - 4], 3
call fcn.004d0f15
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x479a26
mov ecx, edi
call fcn.00478ad0
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.004cfde0
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 0x479a1a
lea esp, [esp]
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp]
push esi
push ecx
call fcn.004d156f
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 [0x51b690]
fild qword [ebp - 0x50]
fild qword [ebp - 0x38]
fchs
faddp st(1)
fdivp st(1)
call fcn.004ced60
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.004cfde0
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 0x479960
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x479a37
push eax
call fcn.004d0fa3
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.004bd07d
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004bd160
mov eax, dword [ebp - 0x18]
jmp 0x479a84
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.004cead5
add ebp, 0x408
mov esp, ebp
pop ebp
ret