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

Disassembly:
mov eax, 0x56cad7
call fcn.0055a6a0
sub esp, 0x468
push ebx
push esi
push edi
xor esi, esi
push esi
push 1
call fcn.0040295c
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x411566
lea ecx, [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x411568
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push 3
pop ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x41161d
push dword [ebp + 0x10]
lea ecx, [ebp - 0x70]
call fcn.004027e7
mov byte [ebp - 4], 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
call fcn.004027e7
mov byte [ebp - 4], 6
push dword [ebp + 0x14]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00410dbc
mov edi, eax
mov byte [ebp - 4], 5
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.00403580
mov byte [ebp - 4], bl
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.00403580
cmp edi, esi
jne 0x4115ff
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jl 0x411588
cmp edi, 1
jge 0x41165d
mov dword [ebp - 4], 7
cmp dword [ebp - 0x20], esi
je 0x411619
push dword [ebp - 0x20]
call fcn.0050475f
pop ecx
xor bl, bl
jmp 0x411634
mov dword [ebp - 4], 4
cmp dword [ebp - 0x20], esi
je 0x411632
push dword [ebp - 0x20]
call fcn.0050475f
pop ecx
mov bl, 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.004160b0
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push esi
push esi
lea eax, [ebp - 0x474]
push 0x200
push eax
mov eax, dword [ebp + 0x10]
call fcn.0041eae0
add esp, 0x10
push esi
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0xc]
call fcn.0041ef70
mov ecx, dword [ebp + 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.0041ef70
neg eax
sbb al, al
inc al
mov dword [ebp - 0x14], esi
test bl, bl
je 0x41175b
test al, al
jne 0x41175b
push dword [ebp - 0x20]
mov dword [ebp + 0xc], esi
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x38]
call fcn.00404e1a
push 4
call fcn.004171db
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00506e30
add esp, 0xc
push dword [ebp - 0x20]
lea esi, [ebp - 0x38]
call fcn.00404e1a
call fcn.004171db
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
push dword [ebp + 0xc]
mov ebx, eax
add ebx, 4
sub esi, 4
call fcn.00503d0c
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
call fcn.005319b0
add esp, 0x14
test eax, eax
je 0x411754
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x411740
push str.ERROR_LZO_DECOMPRESS
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
push 2
mov ecx, eax
pop esi
call fcn.00420460
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00411aa1
xor al, al
jmp 0x41164c
mov edi, dword [ebp + 0xc]
xor esi, esi
jmp 0x411777
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, dword [ebp - 0x20]
jne 0x41176d
call fcn.00504cec
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp + 8], ecx
mov edi, eax
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4117c9
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x4117bd
push str.FAILED_CREATE_FILE
push ecx
call fcn.004032e1
pop ecx
mov esi, eax
call fcn.0040582a
push 2
mov ecx, eax
pop esi
call fcn.00420460
xor esi, esi
mov dword [ebp - 4], 8
jmp 0x41160b
push esi
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x30], esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411817
cmp dword [ebp + 0x14], esi
je 0x41180b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.004032e1
mov esi, eax
call fcn.0040582a
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00420490
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411740
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.00504754
pop ecx
cmp dword [ebp - 0x30], edi
je 0x41186b
cmp dword [ebp + 0x14], esi
je 0x411857
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_WRITE_FILE
call fcn.004032e1
mov esi, eax
call fcn.0040582a
mov ecx, dword [ebp + 0x14]
push eax
push 2
pop esi
call fcn.00420490
pop ecx
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00411aa1
jmp 0x41164a
mov bl, 1
jmp 0x411859