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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538645
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x58dc28]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [0x596994], 0
jne 0x40269d
lea esi, [ebp - 0x42c]
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 - 0x224]
push ecx
call edi
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov dword [0x596998], eax
jmp 0x4026a3
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [0x596998], 0
je 0x402972
call fcn.00411b55
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4026ca
push 0x80004005
call fcn.00401880
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 1
call fcn.00411b55
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4026fa
push 0x80004005
call fcn.00401880
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
lea esi, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00401db0
push str.Output
mov ecx, esi
push ecx
mov edx, esi
push edx
call edi
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40273f
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.OutputDebugLog.log
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x42c]
push eax
call edi
lea eax, [ebp - 0x42c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402760
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004018d0
lea esi, [ebp - 0x448]
call fcn.00403960
mov edx, esi
push edx
mov esi, str._Y__m__d__H:_M._S
lea edi, [ebp - 0x43c]
call fcn.004038d0
push 0x5696ec
mov eax, edi
push eax
lea ecx, [ebp - 0x430]
push ecx
mov byte [ebp - 4], 3
call fcn.00403780
add esp, 0xc
lea edx, [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x440]
mov bl, 4
push eax
mov byte [ebp - 4], bl
call fcn.00402e00
add esp, 0xc
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 5
call fcn.00403860
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40282f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 6
call fcn.00413857
push 0
mov bl, 7
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x438]
push 0x7001
push ecx
lea ecx, [ebp - 0x460]
call fcn.00413734
test eax, eax
je 0x4028ea
push 0x5696f0
push 0
call fcn.0051131a
add esp, 8
lea ecx, [ebp - 0x460]
call fcn.004036b0
push 0x5696f8
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.00403780
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x460]
call fcn.00413932
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x460]
call fcn.00413af8
push 0x569758
push 0
call fcn.0051131a
add esp, 8
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 6
call fcn.00413b74
mov dword [ebp - 4], 3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402926
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40294c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402998
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 - 0x18]
xor ecx, ebp
call fcn.0050fafb
mov esp, ebp
pop ebp
ret