Function at 0x10038af0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd70b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100e70dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1000ac80
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x2e
push eax
lea ecx, [ebp - 0x28]
call fcn.100068a0
mov esi, eax
cmp esi, 0xffffffff
je 0x10038bbf
push ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x5c
push eax
lea ecx, [ebp - 0x28]
call fcn.100068a0
cmp esi, eax
jle 0x10038bbf
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006860
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10003300
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x10038bbf
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10004440
push 2
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006860
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10038c0a
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x10038bed
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10004440
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10003390
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x10038c23
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10004440
push dword [ebp - 0x18]
lea eax, [ebp - 0x5c]
push 3
push eax
lea ecx, [ebp - 0x28]
call fcn.10006860
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10038c6f
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10038c52
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004440
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003390
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x10038c88
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10004440
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop
push 0
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.10020f00
mov edi, eax
lea ecx, [ebp - 0x28]
push edi
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.10006860
mov esi, eax
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.100397a0
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.100394a0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x10038d0f
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x10038cf2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10004440
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10003390
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x10038d2a
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10004440
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x10038d56
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10004440
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x10038d83
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10004440
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x10038da9
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x18]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006860
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10038df7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10038dda
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10004440
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003390
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x10038e10
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10004440
test edi, edi
jns 0x10038c90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
mov eax, dword [ebp - 0x2c]
setne bl
cmp eax, 8
jb 0x10038e40
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10004440
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x10038e69
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10004440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bf25
mov esp, ebp
pop ebp
ret 4