Function at 0x411490
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40cc
call fcn.0041b830
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.004022d0
add esp, 8
test eax, eax
je 0x4114d1
lea eax, [edi + 0xb]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b330
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00402100
lea eax, [ebp - 0x40b8]
push 0
push eax
call fcn.00405210
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40a8], eax
lea eax, [ebp - 0x40b8]
push eax
call fcn.00405240
add esp, 0x10
mov dword [ebp - 0x3c], fcn.00401230
mov dword [ebp - 0x38], fcn.00401250
mov dword [ebp - 0x4c], fcn.00401230
mov dword [ebp - 0x48], fcn.00401250
call fcn.00401340
lea eax, [ebp - 0x9c]
push eax
call fcn.004028a0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00402910
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x40cc], ebx
test ebx, ebx
jne 0x4117e4
xor ecx, ecx
mov dword [ebp - 0x10], 0xffffffff
push esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x40c0], ecx
cmp dword [ebp - 0x80], ecx
jbe 0x4117bd
xor edx, edx
mov dword [ebp - 0x40c8], edx
nop dword [eax]
nop word [eax + eax]
mov ebx, dword [ebp - 0x8c]
lea eax, [ebp - 0x9c]
push 0
push ecx
add ebx, edx
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x40c4], ebx
call fcn.00402850
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4115e4
push edi
push 0
call fcn.00401250
lea eax, [esi + esi]
push eax
push 0
call fcn.00401230
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4117aa
mov esi, dword [ebp - 0x40c0]
lea eax, [ebp - 0x9c]
push edi
push esi
push eax
call fcn.00402850
add esp, 0xc
cmp byte [ebx + 0x19], 0
jne 0x41163a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00402350
add esp, 0x28
mov dword [ebp - 0x40cc], eax
movzx eax, word [edi]
xor ebx, ebx
mov ecx, eax
test ax, ax
je 0x41167c
mov esi, edi
cmp cx, 0x2f
jne 0x41166d
xor eax, eax
push eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411665
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
inc ebx
movzx eax, word [edi + ebx*2]
lea esi, [edi + ebx*2]
mov ecx, eax
test ax, ax
jne 0x411648
mov eax, dword [ebp - 0x40c4]
cmp byte [eax + 0x19], 0
je 0x4116a4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41177d
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00402310
add esp, 8
test eax, eax
jne 0x4117b8
mov ebx, dword [ebp - 0x40]
add ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 8]
test esi, esi
je 0x411734
mov dword [ebp - 0x40bc], eax
nop dword [eax]
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
cmp esi, 0x400000
mov ecx, 0x400000
mov eax, esi
cmova eax, ecx
push eax
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x44]
add ebx, ecx
mov edx, dword [ebp - 0x40bc]
sub esi, ecx
add edx, ecx
mov dword [ebp - 0x40bc], edx
test eax, eax
je 0x41171b
test ecx, ecx
je 0x41172f
test esi, esi
jne 0x4116d0
jmp 0x41172f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4117b1
mov edx, dword [ebp - 0x40bc]
cmp edx, dword [ebp - 8]
jne 0x4117b1
mov ebx, dword [ebp - 0x40c4]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ecx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x30]
push eax
call fcn.00402200
add esp, 4
test eax, eax
jne 0x4117b8
cmp byte [ebx + 0x1d], al
je 0x41177d
push dword [ebx + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x40c0]
mov edx, dword [ebp - 0x40c8]
inc ecx
add edx, 0x20
mov dword [ebp - 0x40c0], ecx
mov dword [ebp - 0x40c8], edx
cmp ecx, dword [ebp - 0x80]
jb 0x411590
mov ebx, dword [ebp - 0x40cc]
jmp 0x4117bd
mov ebx, 2
jmp 0x4117bd
mov ebx, 9
jmp 0x4117bd
mov ebx, 0xb
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call dword [0x41e358]
call esi
add esp, 8
pop esi
test edi, edi
je 0x4117e4
push edi
push 0
call fcn.00401250
add esp, 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00402760
lea eax, [ebp - 0x24]
push eax
call fcn.00402200
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop ebx
pop edi
call fcn.0041b330
mov esp, ebp
pop ebp
ret