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

Disassembly:
mov eax, 0x5e5109
call fcn.005c3f5c
sub esp, 0x464
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
push eax
mov edi, ecx
call fcn.00423489
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x410ed6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.00406054
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
call fcn.00406054
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004105cd
mov esi, eax
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00403955
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00403955
cmp esi, ebx
jne 0x410dd0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 3
jl 0x410d5b
cmp esi, 1
jl 0x410ed8
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push 0x200
lea ebx, [ebp - 0x470]
call fcn.0041e960
add esp, 0xc
xor edi, edi
push edi
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
call fcn.0041edc0
mov ecx, dword [ebp + 0xc]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.0041edc0
neg eax
sbb al, al
inc al
mov dword [ebp - 0x14], edi
test bl, bl
je 0x410efd
test al, al
jne 0x410efd
mov esi, dword [ebp - 0x28]
mov dword [ebp + 8], edi
cmp esi, dword [ebp - 0x24]
jbe 0x410e3e
call fcn.005749cd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], esi
push 4
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.00438751
push eax
lea eax, [ebp + 8]
push eax
call fcn.00576950
mov esi, dword [ebp - 0x28]
add esp, 0xc
cmp esi, dword [ebp - 0x24]
jbe 0x410e6b
call fcn.005749cd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], esi
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.00438751
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x28]
push dword [ebp + 8]
mov ebx, eax
add ebx, 4
sub esi, 4
call fcn.0057365e
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.0059c4a0
add esp, 0x14
test eax, eax
je 0x410ef8
cmp dword [ebp + 0x10], edi
je 0x410ed2
push str.ERROR_LZO_DECOMPRESS
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push 2
mov ecx, eax
mov eax, dword [ebp + 0x10]
pop esi
call fcn.004203d0
xor bl, bl
jmp 0x410ed8
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.004830dd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 8]
jmp 0x410f0f
push edi
lea esi, [ebp - 0x34]
call fcn.0040eb33
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410f3e
cmp dword [ebp + 0x10], edi
je 0x410ed2
push str.FAILED_CREATE_FILE
jmp 0x410eb7
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410f8a
cmp dword [ebp + 0x10], edi
je 0x410f7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.00403080
call fcn.00405670
mov edi, dword [ebp + 0x10]
push eax
push 2
pop esi
call fcn.00420400
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410ed2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.0057403d
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x410ed6
cmp dword [ebp + 0x10], edi
je 0x410ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.00403080
call fcn.00405670
mov edi, dword [ebp + 0x10]
push eax
push 2
pop esi
call fcn.00420400
pop ecx
pop ecx
jmp 0x410ed2