Function at 0x411641
Capabilities:
Create directory
Write file on windows

Disassembly:
mov eax, 0x62e266
call fcn.0060aa10
sub esp, 0x460
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.00435d55
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x4116e3
push dword [ebp + 0x10]
lea ecx, [ebp - 0x6c]
call fcn.0040345f
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
call fcn.0040345f
mov byte [ebp - 4], 2
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.00410ed1
mov esi, eax
mov byte [ebp - 4], 1
push edi
push 1
lea ecx, [ebp - 0x50]
call fcn.00403747
mov byte [ebp - 4], 0
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.00403747
cmp esi, edi
jne 0x4116da
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x411668
cmp esi, 1
jge 0x411705
xor bl, bl
jmp 0x4116e5
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.00425c68
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push edi
push edi
lea eax, [ebp - 0x46c]
push 0x200
push eax
mov eax, dword [ebp + 0x10]
call fcn.00420b90
add esp, 0x10
push edi
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0xc]
call fcn.00421020
mov ecx, dword [ebp + 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00421020
neg eax
sbb al, al
inc al
mov dword [ebp - 0x14], edi
test bl, bl
je 0x4117f8
test al, al
jne 0x4117f8
push dword [ebp - 0x28]
mov dword [ebp + 0xc], edi
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x18]
call fcn.00411f96
push 4
call fcn.00448f0d
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.005b5280
add esp, 0xc
push dword [ebp - 0x28]
lea esi, [ebp - 0x18]
call fcn.00411f96
call fcn.00448f0d
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x28]
push dword [ebp + 0xc]
mov edi, eax
add edi, 4
sub esi, 4
call fcn.005b1f5c
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
call fcn.005dffd0
add esp, 0x14
test eax, eax
je 0x4117f1
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4116df
push str.ERROR_LZO_DECOMPRESS
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
push 2
pop esi
mov ecx, eax
call fcn.00422710
jmp 0x4116df
mov esi, dword [ebp + 0xc]
xor edi, edi
jmp 0x41180a
push edi
lea esi, [ebp - 0x34]
call fcn.00411b61
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x28]
mov dword [ebp + 8], eax
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41184b
cmp dword [ebp + 0x14], edi
je 0x4116df
push str.FAILED_CREATE_FILE
push ecx
call fcn.004031f6
pop ecx
mov esi, eax
call fcn.004057ed
mov edi, dword [ebp + 0x14]
jmp 0x4117e2
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411899
cmp dword [ebp + 0x14], edi
je 0x41188d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.004031f6
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4116df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.005b293b
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x4116e3
cmp dword [ebp + 0x14], edi
je 0x4116df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.004031f6
mov esi, eax
call fcn.004057ed
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00422740
pop ecx
pop ecx
jmp 0x4116df