Function at 0x47ac8c
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040cc
xor eax, eax
push ebp
push 0x47af57
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
call fcn.0047aafc
mov eax, dword [ebp - 0x10]
call fcn.00403f18
cmp eax, 2
jle 0x47acf1
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x47adcd
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x47adcd
lea edx, [ebp - 0x6c]
xor eax, eax
call fcn.004789dc
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x14]
call fcn.00478a8c
cmp byte [ebp - 5], 0
jne 0x47adbf
call fcn.00479600
test al, al
je 0x47ad25
push 0
call sub.user32.dll_MessageBeep
jmp 0x47af2c
lea eax, [ebp - 0x10]
mov edx, 0x47af70
call fcn.00403f20
lea eax, [ebp - 0x10]
mov edx, 0x105
call fcn.00404248
lea eax, [ebp - 0x68]
mov edx, 0x4c
call fcn.0040795c
mov dword [ebp - 0x68], 0x4c
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x14]
call fcn.004040dc
mov dword [ebp - 0x3c], eax
mov eax, 0x47af74
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x10]
call fcn.004040dc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x104
lea eax, [ebp - 0x18]
mov edx, 0x5b6ac0
call fcn.00403ebc
mov eax, dword [ebp - 0x18]
call fcn.004040dc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x8004
lea eax, [ebp - 0x68]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x47af2c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x4c]
call fcn.00403e50
jmp 0x47adcd
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00403f64
push ebp
mov eax, dword [ebp - 0x10]
call fcn.0047abb4
pop ecx
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.004040dc
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x47af2c
cmp dword [0x5b6834], 0
jne 0x47ae0e
push esi
call sub.kernel32.dll_SetEndOfFile_1
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push dword [ebp - 4]
push 0x47af8c
push 0x47af8c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403fd8
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403f18
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp dword [0x5b6834], 0
jbe 0x47af24
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x5b6834]
jbe 0x47af24
or ebx, 0xffffffff
push 0
push 0
push 0
push 4
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x47af09
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47af03
mov eax, dword [ebp - 0xc]
push eax
push 0
inc ebx
push ebx
push 0xffffffffffffffff
mov eax, 0x47af90
mov ecx, 9
mov edx, dword [ebp - 0x1c]
call fcn.0041a180
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47aee3
mov eax, dword [0x5b6834]
shr eax, 2
mov edx, dword [0x5b6834]
sub edx, eax
mov eax, dword [ebp - 0xc]
sub eax, ebx
cmp edx, eax
jbe 0x47aea7
cmp ebx, 0xffffffff
je 0x47aefa
mov ecx, dword [ebp - 0xc]
sub ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, ebx
call fcn.0040282c
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
cmp ebx, 0xffffffff
jle 0x47af24
push 0
push 0
mov eax, dword [ebp - 0xc]
sub eax, ebx
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push esi
call sub.kernel32.dll_SetEndOfFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47af5e
lea eax, [ebp - 0x6c]
call fcn.00403c9c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403cc0
lea eax, [ebp - 4]
call fcn.00403c9c
ret