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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x984
mov eax, dword [0x49106c]
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.0043e860
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.00436fc7
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x437f47
push 0x2000
call fcn.00445a72
mov dword [ebp - 0x914], eax
pop ecx
test eax, eax
jne 0x437caa
push 0xffffffffffffff98
pop eax
jmp 0x437f47
mov eax, dword [ebp - 0x108]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x924], edi
mov ecx, edi
test al, al
je 0x437cda
cmp al, 0x2f
je 0x437cca
cmp al, 0x5c
jne 0x437ccd
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x437cc2
mov dword [ebp - 0x924], edi
cmp byte [edi], 0
jne 0x437d46
push 0x800
lea eax, [ebp - 0x908]
push 0
push eax
call fcn.0043e860
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.00437aeb
mov edi, eax
test edi, edi
je 0x437ca2
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.00437aba
push edi
call fcn.00445a6d
add esp, 0x1c
lea eax, [ebp - 0x908]
push eax
call fcn.0044d335
mov ebx, dword [ebp - 0x914]
pop ecx
jmp 0x437f3e
sub esp, 0xc
mov ecx, ebx
call fcn.00437638
add esp, 0xc
test eax, eax
jne 0x437ec5
push 0x800
push eax
lea eax, [ebp - 0x908]
push eax
call fcn.0043e860
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.00437aeb
mov esi, eax
test esi, esi
je 0x437ca2
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.00437aba
push esi
call fcn.00445a6d
add esp, 0x1c
lea eax, [ebp - 0x908]
push 0x487634
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.0044d420
add esp, 0xc
cmp dword [ebp - 0x910], 0
jne 0x437ece
lea eax, [ebp - 0x108]
cmp edi, eax
je 0x437f29
mov al, byte [edi - 1]
lea ecx, [ebp - 0x108]
mov byte [ebp - 0x909], al
mov byte [edi - 1], 0
call fcn.00437aeb
mov edx, eax
mov dword [ebp - 0x920], edx
test edx, edx
je 0x437ca2
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.00437aba
push dword [ebp - 0x920]
call fcn.00445a6d
add esp, 0x1c
lea ecx, [ebp - 0x908]
call fcn.00437b5c
mov eax, dword [ebp - 0x924]
mov cl, byte [ebp - 0x909]
mov byte [eax - 1], cl
lea ecx, [ebp - 0x108]
call fcn.00437aeb
mov edx, eax
mov dword [ebp - 0x920], edx
test edx, edx
je 0x437ca2
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.00437aba
push dword [ebp - 0x920]
call fcn.00445a6d
add esp, 0x1c
lea eax, [ebp - 0x908]
push 0x487634
push eax
lea eax, [ebp - 0x910]
push eax
call fcn.0044d420
add esp, 0xc
cmp dword [ebp - 0x910], 0
je 0x437f29
mov edi, dword [ebp - 0x91c]
mov ebx, dword [ebp - 0x914]
push ecx
mov edx, ebx
mov ecx, edi
call fcn.004377db
mov esi, eax
pop ecx
test esi, esi
js 0x437f07
jle 0x437f07
push dword [ebp - 0x910]
push 1
push esi
push ebx
call fcn.00447f4b
add esp, 0x10
cmp eax, 1
je 0x437eda
or esi, 0xffffffff
cmp dword [ebp - 0x910], 0
je 0x437f1c
push dword [ebp - 0x910]
call fcn.00447987
pop ecx
test esi, esi
je 0x437f35
mov ecx, edi
call fcn.00437a43
jmp 0x437f3e
mov ebx, dword [ebp - 0x914]
mov edi, dword [ebp - 0x91c]
mov ecx, edi
call fcn.00437a43
mov esi, eax
push ebx
call fcn.00445a6d
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c397
mov esp, ebp
pop ebp
ret