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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5385c7
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x58dc28]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, 1
mov dword [ebp - 4], ebx
cmp dword [0x596994], 0
jne 0x402a4e
lea esi, [ebp - 0x220]
call fcn.00401db0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.CF883656_133A_454E_A104_148EFA8CAA98
mov eax, esi
push eax
lea ecx, [ebp - 0x428]
push ecx
call edi
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [0x596998], eax
jmp 0x402a54
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [0x596998], 0
je 0x402d89
lea esi, [ebp - 0x220]
call fcn.00401db0
push str.Output
mov eax, esi
push eax
mov ecx, esi
push ecx
call edi
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x402a90
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5696fc
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x428]
push edx
call edi
lea esi, [ebp - 0x4f0]
call fcn.00403960
mov eax, esi
push eax
mov esi, str._Y__m__d__H:_M._S
lea edi, [ebp - 0x4d4]
call fcn.004038d0
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4d4]
cmp dword [eax - 4], ebx
jle 0x402afe
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, edi
call fcn.004016d0
mov eax, dword [ebp - 0x4d4]
push 3
push eax
lea eax, [ebp - 0x4d0]
lea edx, [ebp - 0x4cc]
push eax
mov dword [ebp - 0x4d0], edx
call fcn.00402f10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4d0]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402b28
sub ecx, esi
mov esi, ecx
lea ecx, [ebp - 0x444]
call fcn.004030c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4d0]
lea ecx, [ebp - 0x4cc]
cmp eax, ecx
je 0x402b5b
push eax
call fcn.00511871
add esp, 4
push ebx
mov eax, 0x569728
lea ecx, [ebp - 0x444]
call fcn.00402fe0
mov eax, dword [ebp + 0x24]
cmp dword [eax - 4], ebx
jle 0x402b83
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0x24]
call fcn.004016d0
mov eax, dword [ebp + 0x24]
push 3
push eax
lea edx, [ebp - 0x4d0]
lea ecx, [ebp - 0x4cc]
push edx
mov dword [ebp - 0x4d0], ecx
call fcn.00402f10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4d0]
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402bb0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x444]
call fcn.00402fe0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4d0]
lea ecx, [ebp - 0x4cc]
cmp eax, ecx
je 0x402be2
push eax
call fcn.00511871
add esp, 4
push 2
mov eax, 0x56972c
lea ecx, [ebp - 0x444]
call fcn.00402fe0
mov eax, dword [ebp + 8]
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x402c04
lea eax, [ebp + 8]
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402c10
sub ecx, esi
push ecx
lea ecx, [ebp - 0x444]
call fcn.00402fe0
mov eax, dword [ebp - 0x4d4]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005114f0
add esp, 8
test eax, eax
js 0x402d7f
mov ecx, dword [ebp - 0x4d4]
cmp eax, dword [ecx - 8]
jg 0x402d7f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x4d4]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005114f0
add esp, 8
test eax, eax
js 0x402d7f
mov ecx, dword [ebp + 0x24]
cmp eax, dword [ecx - 8]
jg 0x402d7f
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 0x24]
xor edx, edx
mov word [ecx + eax*2], dx
mov bl, 6
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], bl
call fcn.00414216
push 0
push 0x3001
lea edx, [ebp - 0x428]
push edx
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 7
call fcn.00414686
test eax, eax
je 0x402cfc
lea ecx, [ebp - 0x4e8]
call fcn.004036b0
mov eax, dword [ebp - 0x444]
cmp dword [ebp - 0x430], edi
jae 0x402cde
lea eax, [ebp - 0x444]
mov ecx, dword [ebp - 0x434]
push ecx
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00413f4d
lea ecx, [ebp - 0x4e8]
call fcn.004141b1
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], bl
call fcn.00414346
mov dword [ebp - 4], 3
jmp 0x402d25
cmp dword [ebp - 0x430], edi
jb 0x402d3c
mov edx, dword [ebp - 0x444]
push edx
call fcn.0041071e
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4d4]
add eax, 0xfffffff0
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402d8e
push 0x80070057
call fcn.00401880
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jb 0x402d9f
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041071e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050fafb
mov esp, ebp
pop ebp
ret