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

Disassembly:
push 0x108
mov eax, 0x4e56e9
call fcn.004c2aff
and dword [ebp - 4], 0
push 0x400
mov byte [ebp - 4], 2
call fcn.004c0e30
pop ecx
push 0x800
mov dword [ebp - 0xf0], eax
call fcn.004c0e30
pop ecx
mov ebx, eax
push 0x4000
mov dword [ebp - 0x104], ebx
call fcn.004c0e30
pop ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xe8], eax
call fcn.00457c5b
mov esi, 0x5401f0
push esi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.00401718
push esi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.00401718
push esi
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.00401718
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00457fb3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00457f13
lea ecx, [ebp - 0xa0]
call fcn.00457f28
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xe4]
xor eax, eax
mov dword [ebp - 0xec], eax
cmp eax, dword [ebp - 0x114]
jge 0x458757
lea ecx, [ebp - 0xa0]
test eax, eax
jne 0x458506
call fcn.00457f28
jmp 0x45850b
call fcn.00457f57
lea ecx, [ebp - 0xa0]
call fcn.004580ba
mov esi, dword [ebp - 0xf0]
push 0x400
xor edi, edi
push edi
push esi
call fcn.004c3990
push 0x800
push edi
push ebx
call fcn.004c3990
add esp, 0x18
lea eax, [ebp - 0xdc]
push edi
push edi
push edi
push edi
push 0x400
push esi
push eax
lea ecx, [ebp - 0xa0]
call fcn.00457ec1
push 0x400
push ebx
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00406434
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00401ced
jmp 0x458640
sub edi, esi
sar edi, 1
lea ecx, [ebp - 0xe0]
test edi, edi
js 0x458665
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00404c81
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 7
call fcn.00401e15
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 8
call fcn.00401ced
mov ecx, dword [ebp - 0xfc]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov ecx, dword [ebp - 0x108]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00404fef
push 0
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi - 0xc]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004057be
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 9
call fcn.00401ced
mov ecx, dword [ebp - 0xf4]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov esi, dword [ebp - 0xe0]
push 0x4ffb4c
push esi
call fcn.004ca849
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x45858a
or edi, 0xffffffff
jmp 0x45858e
push ebx
call fcn.00406434
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401e15
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xa
call fcn.00401ced
mov ecx, dword [ebp - 0x100]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov edi, dword [ebp - 0xe0]
push 0x2f
push edi
call fcn.004c4627
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4586c2
or ecx, 0xffffffff
jmp 0x4586c6
sub ecx, edi
sar ecx, 1
mov eax, dword [edi - 0xc]
mov esi, dword [ebp - 0xe4]
dec eax
cmp ecx, eax
jne 0x4586df
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x458727
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 0x4000
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xa0]
call fcn.004581f1
test eax, eax
jne 0x45873e
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x104]
lea ecx, [ebp - 0xa0]
call fcn.00457e84
mov eax, dword [ebp - 0xec]
inc eax
jmp 0x4584e3
push 0
lea ecx, [ebp - 0x10c]
push ecx
push eax
push dword [ebp - 0xe8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4586f9
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004c1c8e
push ebx
call fcn.004c1c8e
push dword [ebp - 0xe8]
call fcn.004c1c8e
mov ecx, dword [ebp - 0xf8]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00404fef
lea ecx, [esi - 0x10]
call fcn.00404fef
lea ecx, [edi - 0x10]
call fcn.00404fef
lea ecx, [ebp - 0xa0]
call fcn.00457d45
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404fef
mov bl, 1
jmp 0x4587c2
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404fef
mov al, bl
call fcn.004c2a51
ret