Function at 0x41cdc0
Capabilities:
Get file size
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446e90
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
mov esi, dword [eax + 0x20]
lea edi, [esi + 4]
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
jne 0x41ce1d
xor esi, esi
jmp 0x41ce25
mov esi, dword [esi + 0x24]
sub esi, eax
sar esi, 2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, ebx
je 0x41d086
push 0xe
mov esi, 0xf
push str.dr_padcket.dat
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.004046a0
lea edi, [esp + 0x44]
lea ecx, [esp + 0x70]
mov dword [esp + 0x9c], ebx
call fcn.0041d0b0
mov edi, 0x10
mov byte [esp + 0x9c], 2
cmp dword [esp + 0x5c], edi
jb 0x41ce89
mov eax, dword [esp + 0x48]
push eax
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x88], edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jae 0x41cea6
lea eax, [esp + 0x74]
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
je 0x41d070
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x100000
mov dword [esp + 0x18], eax
jbe 0x41cef8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x88], edi
jb 0x41d086
mov edx, dword [esp + 0x74]
push edx
jmp 0x41d07e
push 2
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esp + 0x17], bl
lea ebx, [esp + 0x17]
lea esi, [esp + 0x60]
call fcn.0041f010
push 0
call fcn.0042ca76
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
add esp, 4
mov dword [esp + 0x40], edx
call fcn.0041a440
mov ebx, dword [esp + 0x64]
mov esi, eax
test esi, esi
je 0x41d05c
cmp dword [esi + 0xc], 0
je 0x41d032
mov edx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov eax, edi
adc eax, 0
cmp dword [esp + 0x40], eax
jg 0x41d032
jl 0x41cf72
cmp dword [esp + 0x3c], ecx
jae 0x41d032
test ebx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
jne 0x41cf82
xor eax, eax
jmp 0x41cf88
mov eax, dword [esp + 0x68]
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 0x41cfae
mov eax, dword [esp + 0x68]
sub eax, ebx
jne 0x41cfb3
call fcn.0042ab0d
lea ecx, [esp + 0x30]
push ecx
lea eax, [esi + 0x14]
call fcn.0041b3c0
test al, al
je 0x41d032
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 0x41cfe6
mov eax, dword [esi + 0x34]
jmp 0x41cfe9
lea eax, [esi + 0x34]
movzx edx, word [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push ebp
call edi
test ebx, ebx
je 0x41d006
mov eax, dword [esp + 0x68]
sub eax, ebx
jne 0x41d00b
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]
movzx eax, word [esp + 0x2c]
add ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 0x10]
mov dword [esp + 0x18], edx
call fcn.00415ac0
cmp dword [esp + 0x18], 0x100000
ja 0x41d057
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
call fcn.0041a440
mov esi, eax
test esi, esi
jne 0x41cf40
mov edi, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41d070
push ebx
call fcn.00429c36
add esp, 4
cmp dword [esp + 0x88], edi
jb 0x41d086
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00429c36
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00429d78
add esp, 0x8c
ret 4