Function at 0x4013d0
Capabilities:
Create directory
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42cc
call fcn.00446a40
mov eax, dword [0x482308]
xor eax, esp
mov dword [esp + 0x42c8], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x401c
mov dword [esp + 0x48], eax
lea eax, [esp + 0xac]
push 0
push eax
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], 0
call fcn.00447640
add esp, 0xc
lea eax, [esp + 0x58]
push 0x50
push 0
push eax
call fcn.00447640
add esp, 0xc
mov dword [esp + 0x4c], 0xffffffff
xor edi, edi
mov dword [esp + 0x10], 0x40db20
lea eax, [esp + 0x40c8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
push 0x104
push edi
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], 0x40db40
mov dword [esp + 0x5c], 0x40db20
mov dword [esp + 0x60], 0x40db40
call fcn.00447640
add esp, 0xc
lea eax, [esp + 0x40c8]
push edi
push edi
push 0x104
push eax
push 0xffffffffffffffff
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [esp + 0x40e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
jne 0x4014d7
call esi
mov ebx, eax
test ebx, ebx
jne 0x40184c
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x40da70
mov dword [esp + 0x3c], 0x40da90
mov dword [esp + 0xa8], 0x40db50
mov dword [esp + 0xac], 0x40dbb0
mov dword [esp + 0xb0], 0x40dbc0
mov dword [esp + 0xb4], 0x40dc10
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], edi
call fcn.0040dc30
lea ecx, [esp + 0x58]
call fcn.0040b3f0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0xb0]
call fcn.0040d2d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4015e9
push dword [esp + 0x88]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x94]
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x24]
push dword [esp + 0xa0]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x2c]
push dword [esp + 0xac]
lea eax, [esp + 0x2c]
push eax
call dword [esp + 0x34]
push dword [esp + 0xb8]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x3c]
push dword [esp + 0xc4]
lea eax, [esp + 0x3c]
push eax
call dword [esp + 0x44]
add esp, 0x30
mov dword [esp + 0x9c], edi
lea edx, [esp + 0x10]
mov dword [esp + 0xa0], edi
lea ecx, [esp + 0x58]
call fcn.0040b270
lea ecx, [esp + 0x58]
call fcn.0040b3f0
jmp 0x40184c
xor esi, esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x74], esi
jbe 0x401836
xor edi, edi
mov dword [esp + 0x34], edi
nop
push 0x208
lea eax, [esp + 0x40cc]
push 0
push eax
call fcn.00447640
add esp, 0xc
lea eax, [esp + 0x40c8]
push dword [esp + 0x44]
push 0x104
push eax
call fcn.004543ac
mov eax, dword [esp + 0x74]
add esp, 0xc
add eax, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x98]
mov edi, dword [eax + esi*4 + 4]
lea esi, [eax + esi*4]
sub edi, dword [esi]
mov dword [esp + 0x20], 0
cmp edi, dword [esp + 0x2c]
jbe 0x401698
push dword [esp + 0x18]
call fcn.004544e8
add esp, 4
mov dword [esp + 0x2c], edi
add edi, edi
je 0x401916
push edi
call fcn.004549c4
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x401918
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
jmp 0x4016a7
mov edx, dword [esi + 4]
mov ecx, dword [esi]
sub edx, ecx
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4016d0
mov eax, dword [esp + 0x9c]
lea esi, [eax + ecx*2]
test edx, edx
je 0x4016d0
mov ecx, edi
sub esi, edi
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x4016c0
push edi
lea eax, [esp + 0x40cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x19], 0
jne 0x40172d
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x40]
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x78]
call fcn.0040d700
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x401836
mov ax, word [esp + 0x40c8]
xor edi, edi
test ax, ax
je 0x401799
xor ecx, ecx
movzx edx, ax
lea esi, [esp + 0x40c8]
movzx eax, dx
cmp eax, 0x2f
je 0x40175a
mov edx, 0x2f2f
cmp ax, dx
jne 0x401782
cmp ecx, 0x208
jae 0x401922
xor eax, eax
push eax
mov word [esi], ax
lea eax, [esp + 0x40cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [esp + 0x40c8]
lea ecx, [edi + edi]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x401748
mov eax, dword [esp + 0x30]
push 0
cmp byte [eax + 0x19], 0
lea eax, [esp + 0x40cc]
je 0x4017b5
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x401810
mov edi, dword [esp + 0x20]
xor ebx, ebx
add edi, dword [esp + 0x2c]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017e2
mov ebx, 1
jmp 0x401810
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
push dword [esp + 0x28]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov eax, 1
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x401832
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
inc esi
add edi, 0x20
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], edi
cmp esi, dword [esp + 0x74]
jb 0x401600
mov edi, dword [esp + 0x18]
push dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
push dword [esp + 0x88]
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x94]
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x24]
push dword [esp + 0xa0]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x2c]
push dword [esp + 0xac]
lea eax, [esp + 0x2c]
push eax
call dword [esp + 0x34]
push dword [esp + 0xb8]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x3c]
push dword [esp + 0xc4]
lea eax, [esp + 0x3c]
push eax
call dword [esp + 0x44]
lea edx, [esp + 0x40]
mov dword [esp + 0xcc], 0
lea ecx, [esp + 0x88]
mov dword [esp + 0xd0], 0
call fcn.0040b270
lea ecx, [esp + 0x88]
call fcn.0040b3f0
push edi
call fcn.004544e8
mov eax, dword [esp + 0x74]
add esp, 0x34
cmp eax, 0xffffffff
je 0x4018fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4018fd
call esi
mov ecx, dword [esp + 0x42d4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00445e0f
mov esp, ebp
pop ebp
ret 8
xor edi, edi
mov ebx, 1
jmp 0x401836
call fcn.00445f47
int3