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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0f20
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1010b070]
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 ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push 0xe
push str.dr_padcket.dat
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.10005859
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10042170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10041c41
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x1000
jb 0x10041c38
test cl, 0x1f
je 0x10041c14
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10041c20
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x10041c2c
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10041c36
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
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 esi, eax
cmp esi, 0xffffffff
je 0x10041c98
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
cmp eax, 0x100000
jbe 0x10041ca5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.10041b10
xor esi, esi
jmp 0x10041e21
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.1003fbb0
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
call fcn.10043c00
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.10039b30
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.10043bb0
push eax
lea ecx, [ebp - 0x58]
call fcn.100368a0
test al, al
je 0x10041e07
nop dword [eax]
lea ecx, [ebp - 0x58]
call fcn.10043270
mov edi, dword [eax]
mov ecx, edi
call fcn.100407a0
test eax, eax
je 0x10041de3
call fcn.10040780
add eax, 0x15180
adc edx, 0
cmp dword [ebp - 0x68], edx
jg 0x10041de3
jl 0x10041d2a
cmp dword [ebp - 0x6c], eax
jae 0x10041de3
mov ecx, edi
call fcn.1003fce0
mov dword [ebp - 0x5c], eax
call fcn.10040780
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
dec ecx
mov eax, dword [ebp - 0x5c]
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], edx
mov dx, word [eax + 0x14]
mov word [ebp - 0x1c], dx
mov ax, word [eax + 0x1c]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.10043be0
push eax
mov ecx, edi
call fcn.1003fc30
mov ecx, eax
call fcn.100406c0
test al, al
je 0x10041de3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x60]
push 0
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call edi
mov ecx, dword [ebp - 0x5c]
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x10041da1
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push ecx
push esi
call edi
push 0
lea eax, [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x18]
lea ecx, [ebp - 0x7c]
push eax
push 0
call fcn.10043be0
push eax
push esi
call edi
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x18]
add ecx, 0x10
add eax, dword [ebp - 0x64]
add eax, ecx
mov dword [ebp - 0x64], eax
cmp eax, 0x100000
ja 0x10041e07
lea ecx, [ebp - 0x58]
call fcn.10043280
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.10043bb0
push eax
lea ecx, [ebp - 0x58]
call fcn.100368a0
test al, al
jne 0x10041cf0
push ebx
call fcn.10041b10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x7c]
mov esi, 1
call fcn.10043bf0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10041e6b
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x10041e62
test cl, 0x1f
je 0x10041e3e
call fcn.100906d1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10041e4a
call fcn.100906d1
sub ecx, eax
cmp ecx, 4
jae 0x10041e56
call fcn.100906d1
cmp ecx, 0x23
jbe 0x10041e60
call fcn.100906d1
mov ecx, eax
push ecx
call fcn.1008a772
add esp, 4
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.1008a777
mov esp, ebp
pop ebp
ret 4