Function at 0x436a00
Capabilities:
Create directory
Get common file path
Set current directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x493558
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
test edi, edi
mov dword [esp + 0x24], 0
je 0x436d7e
mov ecx, SysReAllocString
mov eax, edi
xor edx, edx
cmp word [eax], dx
je 0x436a53
add eax, 2
sub ecx, 1
jne 0x436a44
jmp 0x436a5b
test ecx, ecx
jne 0x436ba0
mov edx, 0x80070057
xor eax, eax
xor ecx, ecx
test edx, edx
setl cl
mov edx, 2
sub ecx, 1
and ecx, eax
add ecx, 2
mov ebp, ecx
xor ecx, ecx
mov eax, ebp
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
mov ebx, eax
xor ecx, ecx
add esp, 4
mov eax, ebp
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x14], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00455056
mov esi, eax
add esp, 4
lea eax, [ebp + ebp]
push eax
push 0
push ebx
mov dword [esp + 0x24], esi
call fcn.0047c3b0
add esp, 0xc
cmp ebp, 0x7fffffff
ja 0x436ad8
mov eax, edi
mov edx, ebp
mov ecx, esi
call fcn.00402840
mov edi, esi
call fcn.00430330
cmp ebp, 0x7fffffff
ja 0x436af2
mov eax, esi
mov edx, ebp
mov ecx, ebx
call fcn.00402840
mov ecx, ebp
mov eax, ebx
call fcn.0042d9f0
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x20], ebp
jae 0x436bd7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.0045505b
add esp, 4
test esi, esi
jne 0x436bd3
mov edi, dword [esp + 0x14]
call fcn.00430330
test edi, edi
mov esi, ebx
mov dword [esp + 0x20], esi
je 0x436c2a
cmp ebp, 0x7fffffff
ja 0x436c2a
xor edx, edx
test ebp, ebp
mov ecx, ebp
mov eax, edi
je 0x436bb0
jmp 0x436b90
cmp word [eax], 0
je 0x436bac
add eax, 2
sub ecx, 1
jne 0x436b90
jmp 0x436bb0
mov eax, SysReAllocString
sub eax, ecx
jmp 0x436a62
test ecx, ecx
jne 0x436c24
mov edx, 0x80070057
xor eax, eax
test edx, edx
mov ecx, edx
jge 0x436bbf
xor eax, eax
xor ebx, ebx
test ecx, ecx
setl bl
sub ebx, 1
and ebx, eax
cmp ebx, esi
jb 0x436b09
mov esi, dword [esp + 0x18]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [esp + 0x3c]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x436d68
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x436c31
push 0x80004005
call fcn.004022b0
mov eax, ebp
sub eax, ecx
jmp 0x436bb7
mov ecx, 0x80070057
jmp 0x436bbd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push 2
push 0x4a19dc
mov dword [esp + 0x44], eax
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x3c]
call fcn.00437120
push str.Directories
lea edx, [esp + 0x20]
push str.__s_
push edx
call fcn.004045e0
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edi
call fcn.004374e0
add esp, 4
cmp ebp, 0x7fffffff
ja 0x436ca1
mov eax, dword [esp + 0x14]
mov edx, ebp
mov ecx, esi
call fcn.00402840
cmp ebx, dword [esp + 0x20]
jb 0x436cb2
push edi
mov ecx, esi
call fcn.004374e0
add esp, 4
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
mov eax, esi
cmp word [eax], 0
je 0x436ccf
push esi
call ebp
mov esi, eax
cmp word [esi], 0
jne 0x436cc4
add esi, 2
cmp word [esi], 0
je 0x436d0c
mov ebx, dword [esp + 0x18]
push esi
mov eax, ebx
call fcn.00430470
add esp, 4
push edi
mov ecx, ebx
call fcn.004374e0
add esp, 4
cmp word [esi], 0
je 0x436d03
push esi
call ebp
mov esi, eax
cmp word [esi], 0
jne 0x436cf8
add esi, 2
cmp word [esi], 0
jne 0x436cd8
push edi
mov ecx, 0x4a77b8
call fcn.004374e0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x3c]
push eax
push str.Files
push eax
call fcn.00436da0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436d64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045505b
add esp, 4
push esi
call fcn.0045505b
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret