Function at 0x100060e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x42c], ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x428], ebx
call fcn.10093c30
lea eax, [ebp - 0x10c]
push 0x100
push eax
call fcn.10098dc8
push 0x5c
push ebx
call fcn.10091e70
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1000656d
sub esi, ebx
lea eax, [ebp - 0x30c]
push esi
push ebx
push eax
call fcn.10097fe0
add esp, 0xc
cmp esi, 0x100
jae 0x1000657e
lea ecx, [ebp - 0x30c]
mov byte [ebp + esi - 0x30c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006170
sub ecx, edx
je 0x1000656d
lea ecx, [ebp - 0x10c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10006186
mov eax, dword [str._GasMask_Dumps]
xorps xmm0, xmm0
mov dword [ecx], eax
mov eax, dword [0x100cafe8]
mov dword [ecx + 4], eax
mov eax, dword [0x100cafec]
mov dword [ecx + 8], eax
mov eax, dword [0x100caff0]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x10c]
movups xmmword [ebp - 0x424], xmm0
mov dword [ebp - 0x414], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x410], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100061d6
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.10002880
cmp dword [ebp - 0x410], 0x10
lea eax, [ebp - 0x424]
cmovae eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006218
mov bl, 1
jmp 0x10006220
shr bl, 4
not bl
and bl, 1
mov ecx, dword [ebp - 0x410]
cmp ecx, 0x10
jb 0x1000625a
mov edx, dword [ebp - 0x424]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006250
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006583
push ecx
push edx
call fcn.10090935
add esp, 8
test bl, bl
je 0x1000626d
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10006274
mov ax, word [0x100caff4]
mov edx, 0x100ff9a8
mov word [edi], ax
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10006290
lea edi, [ebp - 0x10c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100062a0
mov ecx, edx
mov dword [ebp - 0x414], 0
shr ecx, 2
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x410], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x10c]
movups xmmword [ebp - 0x424], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100062e0
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.10002880
cmp dword [ebp - 0x410], 0x10
lea eax, [ebp - 0x424]
cmovae eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006322
mov bl, 1
jmp 0x1000632a
shr bl, 4
not bl
and bl, 1
mov ecx, dword [ebp - 0x410]
cmp ecx, 0x10
jb 0x10006364
mov edx, dword [ebp - 0x424]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000635a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006588
push ecx
push edx
call fcn.10090935
add esp, 8
test bl, bl
je 0x10006377
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x10c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x10006380
lea eax, [ebp - 0x30c]
push 0x100caff4
push eax
call fcn.100954b2
mov edx, eax
add esp, 8
test edx, edx
je 0x100064d2
lea edi, [ebp - 0x20c]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100063c0
mov ax, word [0x100caff4]
mov esi, edx
mov word [edi], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x100063d5
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100063e5
mov ecx, edx
mov dword [ebp - 0x414], 0
shr ecx, 2
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x410], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
movups xmmword [ebp - 0x424], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006422
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.10002880
cmp dword [ebp - 0x410], 0x10
lea eax, [ebp - 0x424]
cmovae eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006464
mov bl, 1
jmp 0x1000646c
shr bl, 4
not bl
and bl, 1
mov ecx, dword [ebp - 0x410]
cmp ecx, 0x10
jb 0x100064a6
mov edx, dword [ebp - 0x424]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000649c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006583
push ecx
push edx
call fcn.10090935
add esp, 8
test bl, bl
je 0x100064b9
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x100caff4
push 0
call fcn.100954b2
mov edx, eax
add esp, 8
test edx, edx
jne 0x100063b3
xor ecx, ecx
mov al, byte [ebp + ecx - 0x20c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x40d], al
test al, al
jne 0x100064d4
lea edi, [ebp - 0x40c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100064f0
mov ax, word [0x100caff4]
push dword [ebp - 0x428]
mov word [edi], ax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov esi, eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10006513
lea edi, [ebp - 0x40c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10006523
mov ecx, edx
lea eax, [ebp - 0x40c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x100caff8
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.10095a8e
mov esi, eax
add esp, 8
test esi, esi
je 0x1000656d
push esi
push dword [ebp + 8]
push 1
push dword [ebp - 0x42c]
call fcn.100990a0
push esi
call fcn.10095e64
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100902f6
mov esp, ebp
pop ebp
ret
call fcn.1009050b
call fcn.1009f4b4
call fcn.1009f4b4
int3