Function at 0x41df0a
Capabilities:
Get file size
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push 0xfc
mov eax, 0x47d325
call fcn.00454371
mov dword [ebp - 0xe0], edx
mov esi, ecx
and dword [ebp - 0xe8], 0
or ebx, 0xffffffff
mov edi, ebx
mov dword [ebp - 0xf0], edi
lea ecx, [ebp - 0xe4]
call fcn.0040aa2d
and dword [ebp - 4], 0
test esi, esi
je 0x41e314
cmp dword [0x4a735c], 0
je 0x41e314
cmp dword [0x4a7360], 0
jg 0x41e314
mov byte [ebp - 4], 1
call fcn.0040a27e
mov ecx, eax
mov dword [ebp - 0xdc], ecx
push dword [ebp - 0xe0]
xor eax, eax
push eax
push esi
push eax
push eax
mov eax, dword [ecx]
or eax, 2
push dword [ecx + 4]
push eax
call fcn.0045d075
test eax, eax
cmovs eax, ebx
mov dword [ebp - 0xd8], eax
lea eax, [eax*2 + 2]
push eax
call fcn.00461b84
add esp, 0x20
mov ecx, eax
mov dword [ebp - 0xe8], ecx
test ecx, ecx
jne 0x41dfbe
mov byte [ebp - 4], al
jmp 0x41e314
push dword [ebp - 0xe0]
push 0
push esi
mov eax, dword [ebp - 0xd8]
inc eax
push eax
push ecx
mov eax, dword [ebp - 0xdc]
push dword [eax + 4]
push dword [eax]
call fcn.0045d0b6
add esp, 0x1c
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push str._u____us__s__s
push 0x60
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a284
push 0x491fb8
push dword [ebp - 0xe8]
push 0x48eb74
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040bd93
add esp, 0x28
mov eax, dword [0x4a735c]
test al, 1
je 0x41e052
push dword [ebp - 0xe4]
push 0x491784
call fcn.0040bec1
pop ecx
pop ecx
mov eax, dword [0x4a735c]
test al, 2
je 0x41e2ad
lea ecx, [ebp - 0xe0]
call fcn.0040aa2d
mov byte [ebp - 4], 2
push 0xa
pop esi
mov dword [ebp - 0xf4], esi
sub esi, 1
mov dword [ebp - 0xf4], esi
js 0x41e2c3
lea eax, [ebp - 0xdc]
push eax
call fcn.00423b41
mov byte [ebp - 4], 3
xor ecx, ecx
push ecx
push ecx
push 4
push ecx
push 7
push 0x10084
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xf0], edi
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xdc]
add ecx, 0xfffffff0
call fcn.0040aa0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x41e0ea
cmp eax, 0x20
je 0x41e0dd
cmp eax, 5
jne 0x41e2c3
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e072
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41e11e
mov dword [ebp - 0xdc], 0xfeff
push 0
lea eax, [ebp - 0xf8]
push eax
push 2
lea eax, [ebp - 0xdc]
push eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
jmp 0x41e124
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push 0
lea edx, [ebp - 0xf8]
push edx
push ecx
push eax
push edi
call esi
lea eax, [ebp - 0x100]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41e292
cmp dword [ebp - 0xfc], 0
jl 0x41e292
jg 0x41e172
cmp dword [ebp - 0x100], 0x400000
jbe 0x41e292
lea eax, [ebp - 0xec]
push eax
call fcn.00423b41
mov byte [ebp - 4], 6
push eax
mov edx, 0x491fcc
lea ecx, [ebp - 0xdc]
call fcn.0041dbad
mov byte [ebp - 4], 7
mov dword [esp], str..old
mov edx, eax
lea ecx, [ebp - 0xd8]
call fcn.00409299
pop ecx
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xdc]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xec]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 0xe]
mov dword [ebp - 0xec], eax
push eax
call fcn.00461b84
pop ecx
mov esi, eax
test esi, esi
jne 0x41e230
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xd8]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xe0]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0
jmp 0x41e2fc
mov byte [esi], 1
and dword [esi + 4], 0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00455260
add esp, 0xc
push 0xa
push dword [ebp - 0xec]
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push esi
call fcn.0045d3d7
pop ecx
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xd8]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xe0]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [0x4a735c]
test al, 4
je 0x41e2bd
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and dword [ebp - 4], 0
jmp 0x41e2f8
mov byte [ebp - 4], 5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xe0]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe8]
jmp 0x41e30d
cmp edi, ebx
je 0x41e303
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x41e314
push eax
call fcn.0045d3d7
pop ecx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xe4]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
call fcn.004542c3
ret