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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x984
mov eax, dword [0x49806c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x100
mov dword [ebp - 0x918], edx
push esi
lea eax, [ebp - 0x108]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x91c], ebx
call fcn.00441bb0
and dword [ebp - 0x910], 0
lea eax, [ebp - 0x108]
push ecx
push esi
push eax
push 0
lea edx, [ebp - 0x980]
mov ecx, ebx
call fcn.0043a2f4
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x43b274
push 0x2000
call fcn.00448d70
mov dword [ebp - 0x914], eax
pop ecx
test eax, eax
jne 0x43afd7
push 0xffffffffffffff98
pop eax
jmp 0x43b274
mov eax, dword [ebp - 0x108]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x924], edi
mov ecx, edi
test al, al
je 0x43b007
cmp al, 0x2f
je 0x43aff7
cmp al, 0x5c
jne 0x43affa
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x43afef
mov dword [ebp - 0x924], edi
cmp byte [edi], 0
jne 0x43b073
push 0x800
lea eax, [ebp - 0x908]
push 0
push eax
call fcn.00441bb0
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.0043ae18
mov edi, eax
test edi, edi
je 0x43afcf
push edi
push dword [ebp - 0x918]
mov ebx, 0x3ff
lea eax, [ebp - 0x908]
push str._s_s
push ebx
push ebx
push eax
call fcn.0043ade7
push edi
call fcn.00448d6b
add esp, 0x1c
lea eax, [ebp - 0x908]
push eax
call fcn.004506b6
mov ebx, dword [ebp - 0x914]
pop ecx
jmp 0x43b26b
sub esp, 0xc
mov ecx, ebx
call fcn.0043a965
add esp, 0xc
test eax, eax
jne 0x43b1f2
push 0x800
push eax
lea eax, [ebp - 0x908]
push eax
call fcn.00441bb0
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.0043ae18
mov esi, eax
test esi, esi
je 0x43afcf
push esi
push dword [ebp - 0x918]
mov ebx, 0x3ff
lea eax, [ebp - 0x908]
push str._s_s
push ebx
push ebx
push eax
call fcn.0043ade7
push esi
call fcn.00448d6b
add esp, 0x1c
lea eax, [ebp - 0x908]
push 0x48dccc
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.004507a1
add esp, 0xc
cmp dword [ebp - 0x910], 0
jne 0x43b1fb
lea eax, [ebp - 0x108]
cmp edi, eax
je 0x43b256
mov al, byte [edi - 1]
lea ecx, [ebp - 0x108]
mov byte [ebp - 0x909], al
mov byte [edi - 1], 0
call fcn.0043ae18
mov edx, eax
mov dword [ebp - 0x920], edx
test edx, edx
je 0x43afcf
mov esi, dword [ebp - 0x918]
lea edi, [ebp - 0x908]
push edx
push esi
push str._s_s
xor eax, eax
mov ecx, 0x200
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x908]
push ebx
push eax
call fcn.0043ade7
push dword [ebp - 0x920]
call fcn.00448d6b
add esp, 0x1c
lea ecx, [ebp - 0x908]
call fcn.0043ae89
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp - 0x909]
mov byte [eax - 1], cl
lea ecx, [ebp - 0x108]
call fcn.0043ae18
mov edx, eax
mov dword [ebp - 0x920], edx
test edx, edx
je 0x43afcf
push edx
push esi
push str._s_s
xor eax, eax
lea edi, [ebp - 0x908]
mov ecx, 0x200
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x908]
push ebx
push eax
call fcn.0043ade7
push dword [ebp - 0x920]
call fcn.00448d6b
add esp, 0x1c
lea eax, [ebp - 0x908]
push 0x48dccc
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.004507a1
add esp, 0xc
cmp dword [ebp - 0x910], 0
je 0x43b256
mov edi, dword [ebp - 0x91c]
mov ebx, dword [ebp - 0x914]
push ecx
mov edx, ebx
mov ecx, edi
call fcn.0043ab08
mov esi, eax
pop ecx
test esi, esi
js 0x43b234
jle 0x43b234
push dword [ebp - 0x910]
push 1
push esi
push ebx
call fcn.0044b249
add esp, 0x10
cmp eax, 1
je 0x43b207
or esi, 0xffffffff
cmp dword [ebp - 0x910], 0
je 0x43b249
push dword [ebp - 0x910]
call fcn.0044ac85
pop ecx
test esi, esi
je 0x43b262
mov ecx, edi
call fcn.0043ad70
jmp 0x43b26b
mov ebx, dword [ebp - 0x914]
mov edi, dword [ebp - 0x91c]
mov ecx, edi
call fcn.0043ad70
mov esi, eax
push ebx
call fcn.00448d6b
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f6c1
mov esp, ebp
pop ebp
ret