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

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x4ab7f8
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
sub esp, 8
push esi
push edi
push eax
push ecx
mov ecx, edx
call fcn.0042ff10
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x42f6e0
mov dword [esp + 0xc], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42f700
mov ecx, dword [0x4c2080]
test esi, esi
mov dword [esp + 0xc], ecx
jne 0x42f6f2
xor eax, eax
jmp 0x42f6f5
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.00405750
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42f759
mov ecx, dword [0x4c2084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42f922
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f922
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00442ac0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [0x4c2080]
mov edx, 0x4d1b48
test edx, edx
mov dword [esp + 8], ecx
je 0x42f7bc
mov eax, edx
shr eax, 0x10
jne 0x42f786
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 8]
push eax
call fcn.00405320
jmp 0x42f7bc
push 0x4d1b48
call edi
mov esi, eax
test esi, esi
je 0x42f7bc
push esi
lea ecx, [esp + 0xc]
call fcn.004056f0
test eax, eax
je 0x42f7bc
mov ecx, dword [esp + 8]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push 0x4d1b48
push eax
push ecx
call fcn.00404a40
add esp, 0x10
push 0
push 0x4c2b54
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.00404d60
test eax, eax
jl 0x42f903
mov ecx, dword [esp + 0xc]
inc eax
test eax, eax
mov edx, dword [ecx - 8]
jl 0x42f903
cmp eax, edx
jg 0x42f903
lea eax, [ecx + eax*2]
push 0x4c2b54
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x42f903
sub eax, dword [esp + 0xc]
sar eax, 1
mov edi, eax
test edi, edi
jl 0x42f903
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea edx, [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x18]
call fcn.004068a0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
cmp ecx, eax
mov byte [esp + 0x1c], 2
je 0x42f886
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x42f856
mov edx, dword [0x4c2084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42f85d
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42f86d
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x14]
call fcn.00405750
jmp 0x42f886
lea ecx, [esp + 0xc]
call fcn.00405a90
mov esi, dword [esi]
mov dword [esp + 0xc], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x24]
mov edx, dword [0x4c2084]
mov byte [esp + 0x1c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f8ba
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f8ba
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f8e8
mov ecx, dword [esp + 0xc]
push eax
push ecx
push eax
call ebp
test eax, eax
jne 0x42f8e8
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00410150
inc edi
lea ecx, [esp + 0x10]
push edi
push 0x4c2b54
call fcn.00404d60
mov edi, eax
test edi, edi
jge 0x42f822
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004056c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004056c0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8