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

Disassembly:
push 0xffffffffffffffff
push 0x4473e0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
push 0xe
xor ebx, ebx
mov ebp, 0xf
push str.dr_padcket.dat
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004046a0
lea edi, [esp + 0x4c]
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], ebx
call fcn.0041d0b0
mov edi, 0x10
mov byte [esp + 0xa0], 2
cmp dword [esp + 0x64], edi
jb 0x41cb38
mov eax, dword [esp + 0x50]
push eax
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x90], edi
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jae 0x41cb55
lea eax, [esp + 0x7c]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41cb95
push esi
call fcn.0041c9b0
cmp dword [esp + 0x90], edi
jb 0x41cb8e
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00429c36
add esp, 4
xor eax, eax
jmp 0x41cd90
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
mov dword [esp + 0x20], eax
jbe 0x41cbd2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041c9b0
cmp dword [esp + 0x90], edi
jb 0x41cb8e
mov edx, dword [esp + 0x7c]
push edx
call fcn.00429c36
add esp, 4
xor eax, eax
jmp 0x41cd90
push 2
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0042ca76
mov byte [esp + 0x1b], bl
add esp, 4
lea ebx, [esp + 0x17]
lea esi, [esp + 0x68]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.0041f010
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
jbe 0x41cc10
call fcn.0042ab0d
mov ebx, dword [esp + 0x6c]
mov edi, esi
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
cmp dword [eax + 4], esi
mov dword [esp + 0x48], edi
jbe 0x41cc2b
call fcn.0042ab0d
cmp edi, esi
je 0x41cd56
mov eax, dword [esp + 0x18]
cmp edi, dword [eax + 8]
jb 0x41cc41
call fcn.0042ab0d
mov esi, dword [edi]
cmp dword [esi + 0xc], 0
je 0x41cd40
mov edx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov eax, edi
adc eax, 0
cmp dword [esp + 0x38], eax
jg 0x41cd3c
jl 0x41cc75
cmp dword [esp + 0x34], ecx
jae 0x41cd3c
test ebx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
jne 0x41cc85
xor eax, eax
jmp 0x41cc8b
mov eax, dword [esp + 0x70]
sub eax, ebx
add eax, 0xffffffff
test ebx, ebx
mov word [esp + 0x30], ax
mov cx, word [esi + 0x44]
mov word [esp + 0x2c], cx
mov dx, word [esi + 0x4c]
mov word [esp + 0x2e], dx
je 0x41ccb1
mov eax, dword [esp + 0x70]
sub eax, ebx
jne 0x41ccb6
call fcn.0042ab0d
lea ecx, [esp + 0x30]
push ecx
lea eax, [esi + 0x14]
call fcn.0041b3c0
test al, al
je 0x41cd3c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x20]
push edx
push 0x10
lea eax, [esp + 0x30]
push eax
push ebp
call edi
cmp dword [esi + 0x48], 0x10
jb 0x41cce9
mov esi, dword [esi + 0x34]
jmp 0x41ccec
add esi, 0x34
movzx edx, word [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
push ebp
call edi
test ebx, ebx
je 0x41cd09
mov eax, dword [esp + 0x70]
sub eax, ebx
jne 0x41cd0e
call fcn.0042ab0d
movzx edx, word [esp + 0x30]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call edi
movzx ecx, word [esp + 0x30]
add ecx, dword [esp + 0x20]
movzx eax, word [esp + 0x2c]
lea eax, [ecx + eax + 0x10]
cmp eax, 0x100000
mov dword [esp + 0x20], eax
ja 0x41cd56
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
cmp edi, dword [edx + 8]
jb 0x41cd4e
call fcn.0042ab0d
add edi, 4
jmp 0x41cc16
mov eax, dword [esp + 0x18]
push eax
call fcn.0041c9b0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41cd74
push ebx
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x90], 0x10
jb 0x41cd8b
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00429c36
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00429d78
add esp, 0x90
ret