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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a055d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
push str.dr_padcket.dat
lea ecx, [ebp - 0x94]
call fcn.00406abb
mov dword [ebp - 4], 0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.0047e690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.00406b99
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x58]
call fcn.00406b11
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x47edfa
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xac]
call fcn.0047e870
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406b99
mov eax, dword [ebp - 0x98]
jmp 0x47f050
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x4ae0f0]
jbe 0x47ee51
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.0047e870
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406b99
mov eax, dword [ebp - 0x9c]
jmp 0x47f050
push 2
push 0
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
call fcn.0047e4e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push 0xf000
lea ecx, [ebp - 0x24]
call fcn.004463d0
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 8]
call fcn.00443db0
jmp 0x47ee9f
lea ecx, [ebp - 0x74]
call fcn.00447130
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00446e30
push eax
lea ecx, [ebp - 0x74]
call fcn.00447150
movzx ecx, al
test ecx, ecx
je 0x47f00c
lea ecx, [ebp - 0x74]
call fcn.00447110
mov edx, dword [eax]
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp - 0x78]
call fcn.00443d40
test eax, eax
je 0x47f007
mov ecx, dword [ebp - 0x78]
call fcn.00445570
add eax, dword [0x4ae108]
mov ecx, dword [0x4ae10c]
adc ecx, edx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0xb0]
jg 0x47f007
jl 0x47ef21
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xb4]
jae 0x47f007
mov ecx, dword [ebp - 0x78]
call fcn.00481270
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x78]
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 - 0x38]
add ecx, 4
call fcn.00428568
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 0x38]
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 - 0x78]
call fcn.00481290
mov ecx, eax
call fcn.00445410
movzx ecx, al
test ecx, ecx
je 0x47f007
push 0
lea edx, [ebp - 0x34]
push edx
push 0x10
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x34]
push edx
movzx eax, word [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 4
call fcn.00406b11
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x34]
push edx
movzx eax, word [ebp - 0x60]
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00446430
push eax
mov ecx, dword [ebp - 0x30]
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 - 0x14]
cmp eax, dword [0x4ae0f0]
jbe 0x47f007
jmp 0x47f00c
jmp 0x47ee97
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.0047e870
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa8], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00446410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406b99
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0047676d
mov esp, ebp
pop ebp
ret 4