Function at 0x47c30e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd5e
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00497da0
mov eax, dword [0x4cb0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1020], ecx
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [0x4cb014]
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], esi
or ebx, 0xffffffff
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x103c]
mov byte [ebp - 4], 1
push eax
push dword [ecx + 0x414]
add ecx, 8
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1038], esi
call fcn.004682df
mov ecx, eax
call fcn.00467e56
push esi
push esi
push 3
push esi
push 3
lea eax, [edi + 4]
mov byte [ebp - 4], 2
push connect
push dword [eax]
mov dword [ebp - 0x1030], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x47c435
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.0045fd5c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1018]
push eax
add ecx, 0x14
mov byte [ebp - 4], 3
call fcn.0045f6df
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 2
call fcn.0045e73f
mov eax, dword [ebp - 0x1030]
push dword [eax]
lea eax, [ebp - 0x1014]
push str.Error_opening_file__s.
push eax
call fcn.0045fd48
add esp, 0xc
lea eax, [ebp - 0x1014]
push esi
push esi
push ecx
mov ecx, esp
push eax
call fcn.0045e6a5
mov ecx, dword [ebp - 0x1020]
lea ecx, [ecx + 0x420]
call fcn.004620ac
jmp 0x47c75f
mov eax, dword [ebp - 0x1018]
cmp dword [eax + 0xc], esi
je 0x47c744
mov eax, dword [ebp - 0x1030]
push dword [eax]
lea eax, [ebp - 0x1014]
push str.Copying_file__s.
push eax
call fcn.0045fd48
add esp, 0xc
lea eax, [ebp - 0x1014]
push esi
push esi
push ecx
mov ecx, esp
push eax
call fcn.0045e6a5
mov ebx, dword [ebp - 0x1020]
lea ecx, [ebx + 0x420]
call fcn.004620ac
lea eax, [ebp - 0x1044]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x47c509
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.0045fd5c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1018]
push eax
mov byte [ebp - 4], 4
lea ecx, [ecx + 0x14]
call fcn.0045f6df
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 2
call fcn.0045e73f
mov eax, dword [ebp - 0x1030]
push dword [eax]
lea eax, [ebp - 0x1014]
push str.Couldnt_get_file_size_of__s
push eax
call fcn.0045fd48
add esp, 0xc
lea eax, [ebp - 0x1014]
push esi
push esi
push ecx
mov ecx, esp
push eax
call fcn.0045e6a5
lea ecx, [ebx + 0x420]
call fcn.004620ac
push edi
jmp 0x47c759
push 0x49f800
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.0045f78e
mov ecx, dword [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x101c]
mov byte [ebp - 4], 5
push eax
call fcn.00466f64
push eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 6
call fcn.0045f6df
lea ecx, [ebp - 0x101c]
call fcn.0045e73f
lea ecx, [ebp - 0x1024]
mov byte [ebp - 4], 2
call fcn.0045e73f
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47c5f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.0045fd5c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1018]
push eax
mov byte [ebp - 4], 7
lea ecx, [ecx + 0x14]
call fcn.0045f6df
lea ecx, [ebp - 0x1024]
mov byte [ebp - 4], 2
call fcn.0045e73f
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1014]
push str.Error_creating_file__s.
push eax
call fcn.0045fd48
add esp, 0xc
lea eax, [ebp - 0x1014]
push esi
push esi
push ecx
mov ecx, esp
push eax
call fcn.0045e6a5
mov ecx, dword [ebp - 0x1020]
lea ecx, [ecx + 0x420]
jmp 0x47c4fe
mov ecx, dword [ebp - 0x1020]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1028], xmm0
lea ecx, [ecx + 0x420]
call fcn.00461fed
test al, al
jne 0x47c747
mov eax, dword [ebp - 0x1024]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp - 0x1028]
mov dword [ebp - 0x1018], eax
push esi
lea eax, [ebp - 0x1034]
push eax
push 0x400
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c721
cmp dword [ebp - 0x1034], 0
je 0x47c721
push esi
lea eax, [ebp - 0x1038]
push eax
push dword [ebp - 0x1034]
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47c721
mov eax, dword [ebp - 0x1038]
cmp dword [ebp - 0x1034], eax
jne 0x47c721
mov ecx, dword [ebp - 0x1018]
add ecx, eax
mov eax, dword [ebp - 0x101c]
push esi
adc eax, esi
mov dword [ebp - 0x1018], ecx
mov edx, eax
mov dword [ebp - 0x101c], eax
call fcn.00497abd
mov edx, dword [ebp - 0x1040]
mov ecx, dword [ebp - 0x1044]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x4a3484]
movss dword [ebp - 0x1024], xmm0
call fcn.00497abd
movss xmm1, dword [ebp - 0x1024]
cvtsd2ss xmm0, xmm0
mov ecx, dword [ebp - 0x1020]
lea ecx, [ecx + 0x420]
divss xmm1, xmm0
cvttss2si eax, xmm1
push eax
call fcn.0046207c
mov ecx, dword [ebp - 0x1020]
lea ecx, [ecx + 0x420]
call fcn.00461fed
test al, al
je 0x47c631
jmp 0x47c747
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
or edi, 0xffffffff
call esi
mov ecx, dword [ebp - 0x1030]
lea eax, [ebp - 0x102c]
push eax
or ebx, edi
call fcn.0045f6df
xor esi, esi
inc esi
cmp edi, 0xffffffff
je 0x47c753
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x47c75f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x103c]
call fcn.0045e73f
lea ecx, [ebp - 0x102c]
call fcn.0045e73f
lea ecx, [ebp - 0x1014]
call fcn.0045e73f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004971ea
mov esp, ebp
pop ebp
ret 4