Function at 0x4788a0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4fa3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x64222c]
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.004a86ad
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.004a803d
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.004a9029
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x478abb
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.004a80aa
cmp eax, ebx
je 0x478aa7
mov eax, dword [ebp - 0x28]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x478aa7
mov esi, dword [esi + 8]
push 0x607c74
push esi
mov byte [ebp - 4], 3
call fcn.004bcece
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x478a96
mov ecx, edi
call fcn.0046fd80
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.004ba930
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 0x478a8a
lea esp, [esp]
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp]
push esi
push ecx
call fcn.004bd528
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 [0x502a88]
fild qword [ebp - 0x50]
fild qword [ebp - 0x38]
fchs
faddp st(1)
fdivp st(1)
call fcn.004ba740
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.004ba930
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 0x4789d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov byte [ebp - 4], 0
cmp eax, ebx
je 0x478aa7
push eax
call fcn.004bcf5c
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.004a8c84
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004a8d67
mov eax, dword [ebp - 0x18]
jmp 0x478aee
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.004ba4b8
add ebp, 0x408
mov esp, ebp
pop ebp
ret