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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a051a
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x20]
call fcn.00497730
test eax, eax
jne 0x47ea58
jmp 0x47ed16
push str.dr_padcket.dat
lea ecx, [ebp - 0x8c]
call fcn.00406abb
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x98]
call fcn.0047e690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00406b99
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x50]
call fcn.00406b11
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x47ead2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00406b99
jmp 0x47ed16
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x4ae0f0]
jbe 0x47eb0a
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00406b99
jmp 0x47ed16
push 2
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xf000
lea ecx, [ebp - 0x24]
call fcn.004463d0
mov byte [ebp - 4], 3
push 0
call fcn.0047e4e0
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0x20]
call fcn.00497770
mov dword [ebp - 0x70], eax
jmp 0x47eb66
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x20]
call fcn.00497770
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x47ecf1
mov ecx, dword [ebp - 0x70]
call fcn.00443d40
test eax, eax
je 0x47ec9b
mov ecx, dword [ebp - 0x70]
call fcn.00445570
add eax, dword [0x4ae108]
mov ecx, dword [0x4ae10c]
adc ecx, edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x9c]
jg 0x47ec9b
jl 0x47ebc2
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0xa0]
jae 0x47ec9b
mov ecx, dword [ebp - 0x70]
call fcn.00481270
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x70]
call fcn.00445570
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
lea ecx, [ebp - 0x24]
call fcn.00438410
sub eax, 1
mov word [ebp - 0x60], ax
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00428568
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + 0x20]
mov word [ebp - 0x62], dx
lea eax, [ebp - 0x60]
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00446430
push eax
mov ecx, dword [ebp - 0x70]
call fcn.00481290
mov ecx, eax
call fcn.00445410
movzx ecx, al
test ecx, ecx
je 0x47ec9b
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x10
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x2c]
push edx
movzx eax, word [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00406b11
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x2c]
push edx
movzx eax, word [ebp - 0x60]
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00446430
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx edx, word [ebp - 0x60]
movzx eax, word [ebp - 0x64]
add eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
je 0x47ecce
push 1
mov ecx, dword [ebp - 0x90]
call fcn.00442ef0
mov dword [ebp - 0xa4], eax
jmp 0x47ecd8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x4ae0f0]
jbe 0x47ecec
jmp 0x47ecf1
jmp 0x47eb55
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00446410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00406b99
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret