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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d88c0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x511070]
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
push str.dr_padcket.dat
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00438e80
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00480140
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x47fccf
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.004339b0
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
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47fd26
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x5c], eax
cmp eax, 0x100000
jbe 0x47fd33
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0047fc00
xor esi, esi
jmp 0x47fe56
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
call fcn.004ae35d
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
call fcn.00481930
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x47fe3c
mov edi, dword [esi]
cmp dword [edi + 0xc], 0
je 0x47fe28
mov edx, dword [edi]
mov ecx, edx
mov eax, dword [edi + 4]
add ecx, 0x15180
mov dword [ebp - 0x6c], eax
adc eax, 0
cmp dword [ebp - 0x64], eax
jg 0x47fe28
jl 0x47fd93
cmp dword [ebp - 0x68], ecx
jae 0x47fe28
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x74]
sub eax, ecx
mov dword [ebp - 0x24], edx
dec eax
mov word [ebp - 0x18], ax
movzx eax, word [edi + 0x40]
mov word [ebp - 0x1c], ax
movzx eax, word [edi + 0x48]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [edi + 0x14]
call fcn.0047ead0
test al, al
je 0x47fe28
push 0
lea eax, [ebp - 0x58]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x30
cmp dword [edi + 0x14], 0x10
jb 0x47fde8
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call edi
push 0
lea eax, [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x78]
push ebx
call edi
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x18]
add ecx, 0x10
add eax, dword [ebp - 0x5c]
add eax, ecx
mov dword [ebp - 0x5c], eax
cmp eax, 0x100000
ja 0x47fe39
mov edi, dword [ebp - 0x60]
add esi, 4
cmp esi, dword [edi + 4]
jne 0x47fd60
jmp 0x47fe3c
mov edi, dword [ebp - 0x60]
push edi
call fcn.0047fc00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x78]
mov esi, 1
call fcn.00422790
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x47fe6b
inc ecx
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
call fcn.004339b0
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.004a474b
mov esp, ebp
pop ebp
ret 4