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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50baa5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push 0xe
mov dword [ebp - 0x3c], 0
push str.dr_padcket.dat
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.0044c030
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00480120
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x47fb42
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47fb38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdd1
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
push 0
cmovae eax, dword [ebp - 0x54]
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x58], ebx
cmp ebx, 0xffffffff
jne 0x47fb9d
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x47fbdc
mov ecx, dword [esi]
test ecx, ecx
je 0x47fb83
push ecx
call fcn.0047dc70
mov dword [esi], 0
add esi, 4
cmp esi, dword [edi + 4]
jne 0x47fb77
mov esi, dword [edi]
mov dword [edi + 4], esi
xor esi, esi
jmp 0x47fd81
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
cmp eax, 0x100000
jbe 0x47fbe6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x47fbdc
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x47fbcc
push ecx
call fcn.0047dc70
mov dword [esi], 0
add esi, 4
cmp esi, dword [edi + 4]
jne 0x47fbc0
mov esi, dword [edi]
mov dword [edi + 4], esi
xor esi, esi
jmp 0x47fd81
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
call fcn.004e4842
push 0xf023
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
call fcn.004daf9a
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47fdd1
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
push 0xf000
push 0
push eax
mov dword [ebp - 0x5c], eax
mov dword [eax - 4], ecx
call fcn.004dcc10
mov esi, dword [edi]
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
cmp esi, dword [edi + 4]
je 0x47fd2c
mov ebx, dword [esi]
cmp dword [ebx + 0xc], 0
je 0x47fd15
mov edx, dword [ebx + 4]
mov dword [ebp - 0x60], edx
mov edx, dword [ebx]
mov eax, dword [ebp - 0x60]
add edx, 0x15180
adc eax, 0
cmp dword [ebp - 0x6c], eax
jg 0x47fd15
jl 0x47fc75
cmp dword [ebp - 0x70], edx
jae 0x47fd15
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
lea eax, [ecx + 0xf000]
sub eax, ecx
dec eax
mov word [ebp - 0x18], ax
movzx eax, word [ebx + 0x40]
mov word [ebp - 0x1c], ax
movzx eax, word [ebx + 0x48]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [ebx + 0x14]
call fcn.0047e980
test al, al
je 0x47fd1a
push 0
lea eax, [ebp - 0x64]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, 0x30
cmp dword [ebx + 0x14], 0x10
jb 0x47fcce
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push ebx
mov ebx, dword [ebp - 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x5c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x18]
add ecx, 0x10
add eax, dword [ebp - 0x68]
add eax, ecx
mov dword [ebp - 0x68], eax
cmp eax, 0x100000
jbe 0x47fd1d
jmp 0x47fd2c
mov ebx, dword [ebp - 0x58]
jmp 0x47fd20
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
add esi, 4
cmp esi, dword [edi + 4]
jne 0x47fc41
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x47fd54
mov ecx, dword [esi]
test ecx, ecx
je 0x47fd3f
push ecx
call fcn.0047dc70
mov dword [esi], 0
add esi, 4
cmp esi, dword [edi + 4]
jne 0x47fd33
mov eax, dword [edi]
mov dword [edi + 4], eax
jmp 0x47fd57
mov dword [edi + 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdd1
push 0xf023
push ecx
call fcn.004dafca
add esp, 8
mov esi, 1
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x47fdb1
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47fda7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fdd1
push edx
push ecx
call fcn.004dafca
add esp, 8
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 - 0x14]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
call fcn.004e002c
int3