Function at 0x47ffec
Capabilities:
Read file on windows
Set console window title
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x47fff4
push ebx
push esi
push edi
mov eax, dword [0x486414]
mov byte [eax], 1
mov eax, 0x47fabc
call fcn.00406d64
xor eax, eax
push ebp
push 0x48066d
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047f774
test al, al
jne 0x480045
mov eax, dword [0x48611c]
mov edx, 0x480684
call fcn.00404d78
call fcn.00403300
call fcn.004028dc
jmp 0x4805f0
call fcn.00402a9c
cmp eax, 3
jge 0x48009a
push 0x4806b0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.0045bc6c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00457410
push dword [ebp - 0x18]
push 0x4806c4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405168
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48611c]
call fcn.00404da0
call fcn.00403300
call fcn.004028dc
jmp 0x4805f0
lea edx, [ebp - 0x20]
mov eax, 3
call fcn.00402afc
mov eax, dword [ebp - 0x20]
mov edx, 5
call fcn.00409590
mov dword [0x4907e8], eax
mov dl, 1
mov eax, dword [0x4174dc]
call fcn.00403840
mov ebx, eax
push 0
push 0
push 4
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x24]
mov eax, 2
call fcn.0045bc6c
mov eax, dword [ebp - 0x24]
call fcn.00405088
push eax
call sub.kernel32.dll_CreateFileW
mov dword [0x4887c0], eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x48]
mov eax, 2
call fcn.0045bc6c
mov eax, dword [ebp - 0x48]
call fcn.0047f6e0
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00414a38
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x4c]
mov eax, 2
call fcn.0045bc6c
mov eax, dword [ebp - 0x4c]
call fcn.00457448
push eax
lea eax, [ebp - 0x5c]
xor edx, edx
mov cl, 1
call fcn.0041491c
lea ecx, [ebp - 0x5c]
pop eax
pop edx
call fcn.0047f654
lea eax, [ebp - 0x34]
call fcn.00411c30
mov dword [0x4907d8], eax
mov dword [0x4907dc], edx
push 0
push 0
mov eax, dword [0x4907d8]
push eax
mov eax, dword [0x4887c0]
push eax
call sub.kernel32.dll_SetFilePointer_1
call fcn.0040b28c
fstp qword [0x4907e0]
wait
xor eax, eax
mov dword [0x4907ec], eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0x64]
mov eax, 1
call fcn.0045bc6c
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x480718
call fcn.00405104
mov eax, dword [ebp - 0x60]
call fcn.00405088
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
mov eax, esi
call fcn.0047fa3c
mov dword [0x4907d0], eax
mov dword [0x4907d4], edx
cmp dword [0x4907d4], 0
jne 0x4801eb
cmp dword [0x4907d0], 0
jbe 0x4801f9
jmp 0x4801ed
jle 0x4801f9
mov eax, esi
call fcn.0047fa04
mov dword [0x485f60], eax
cmp dword [0x4907d4], 0
jne 0x48020d
cmp dword [0x4907d0], 0
jae 0x480212
jmp 0x48020f
jge 0x480212
or esi, 0xffffffff
cmp dword [0x4907d4], 0
jne 0x480226
cmp dword [0x4907d0], 0
jae 0x480241
jmp 0x480228
jge 0x480241
mov eax, dword [0x48611c]
mov edx, 0x48072c
call fcn.00404d78
call fcn.00403300
call fcn.004028dc
cmp dword [0x4907d4], 0
jne 0x480255
cmp dword [0x4907d0], 0
jae 0x480261
jmp 0x480257
jge 0x480261
push 0x3e8
call sub.kernel32.dll_Sleep_1
cmp esi, 0xffffffff
je 0x480185
push 0
push 0x4907cc
push 0
push 0
push 0
push 0
push 0x90083
push esi
call sub.kernel32.dll_DeviceIoControl
mov eax, dword [0x4907ec]
cmp eax, dword [0x4907e8]
jb 0x480303
mov eax, dword [0x485f60]
xor edx, edx
add eax, dword [0x485f64]
adc edx, dword [0x485f68]
mov dword [0x485f64], eax
mov dword [0x485f68], edx
inc dword [0x485f6c]
mov edx, dword [0x485f60]
mov eax, 0x4887c4
mov ecx, 0xff
call fcn.00403094
mov edx, 0x4887c4
mov ecx, dword [0x485f60]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [0x485f60]
xor edx, edx
add eax, dword [0x4907d8]
adc edx, dword [0x4907dc]
mov dword [0x4907d8], eax
mov dword [0x4907dc], edx
xor eax, eax
mov dword [0x4907ec], eax
push 0
push 0
mov eax, dword [0x4907d8]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
push 0x4907c4
mov eax, dword [0x485f60]
push eax
push 0x4887c4
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4803b3
mov eax, dword [0x4907ec]
xor edx, edx
push edx
push eax
push dword [0x4907dc]
push dword [0x4907d8]
mov eax, dword [0x48611c]
mov dl, 0x5b
call fcn.0040329c
call fcn.00405b20
mov edx, 0x48074c
call fcn.00404d78
call fcn.00405b20
mov dl, 0x29
call fcn.0040329c
call fcn.00403300
call fcn.004028dc
inc dword [0x4907ec]
push 0
push 0x4907c8
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x4887c0]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, ebx
call fcn.0041b6b0
push 0
push 0
mov eax, ebx
call fcn.0041afc0
jmp 0x48056f
xor eax, eax
mov dword [0x4907ec], eax
mov eax, dword [0x4907c4]
xor edx, edx
add eax, dword [0x4907d8]
adc edx, dword [0x4907dc]
mov dword [0x4907d8], eax
mov dword [0x4907dc], edx
mov edx, 0x4887c4
mov ecx, dword [0x4907c4]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4803ff
cmp eax, 0x100000
jb 0x480430
jmp 0x480401
jl 0x480430
push 0
push 0x4907c8
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x4887c0]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, ebx
call fcn.0041b6b0
push 0
push 0
mov eax, ebx
call fcn.0041afc0
push dword [0x4907e4]
push dword [0x4907e0]
call fcn.0040b28c
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0045c754
cmp edx, 0
jne 0x48045d
cmp eax, 0x64
jbe 0x48054c
jmp 0x480463
jle 0x48054c
call fcn.0040b28c
fstp qword [0x4907e0]
wait
push dword [0x4907dc]
push dword [0x4907d8]
lea edx, [ebp - 0x68]
mov al, 2
call fcn.0047f7d0
mov edx, dword [ebp - 0x68]
mov eax, dword [0x48611c]
call fcn.00404d78
call fcn.00403300
call fcn.004028dc
lea eax, [ebp - 0x6c]
push eax
push dword [0x4907dc]
push dword [0x4907d8]
lea edx, [ebp - 0x90]
mov al, 2
call fcn.0047f7d0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
push dword [0x485f68]
push dword [0x485f64]
lea edx, [ebp - 0x94]
mov al, 2
call fcn.0047f7d0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
mov eax, dword [0x485f6c]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
fild qword [0x485f64]
fild qword [0x4907d8]
fdivp st(1)
fmul dword [0x48076c]
fstp xword [ebp - 0xa0]
wait
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 3
lea edx, [ebp - 0x8c]
mov ecx, 3
mov eax, 0x480778
call fcn.0040a130
mov eax, dword [ebp - 0x6c]
call fcn.00404b88
push eax
call sub.kernel32.dll_SetConsoleTitleA
mov eax, dword [0x4907c4]
xor edx, edx
cmp edx, dword [0x4907d4]
jne 0x480569
cmp eax, dword [0x4907d0]
jb 0x480284
jmp 0x48056f
jl 0x480284
mov eax, dword [0x4907d8]
mov edx, dword [0x4907dc]
cmp edx, dword [0x4907d4]
jne 0x480591
cmp eax, dword [0x4907d0]
jb 0x480185
jmp 0x480597
jl 0x480185
push 0
push 0x4907c8
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x4887c0]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, ebx
call fcn.0041b6b0
push 0
push 0
mov eax, ebx
call fcn.0041afc0
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4887c0]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x48611c]
mov edx, 0x4807a4
call fcn.00404d78
call fcn.00403300
call fcn.004028dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480674
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.004046ec
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004046ec
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00404e5c
lea eax, [ebp - 0x5c]
call fcn.004107c8
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00404e5c
lea eax, [ebp - 0x44]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.0040557c
lea eax, [ebp - 0x24]
call fcn.00404e44
lea eax, [ebp - 0x20]
call fcn.004046c8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404e5c
ret