Function at 0x422980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5661d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5bc324]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x422c1e
jle 0x422a23
push 0x3a
push edx
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x422a23
mov edx, dword [esi]
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x422a23
mov esi, dword [edi + 4]
lea ecx, [edx - 0x10]
add edi, 4
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x422bf6
cmp dword [ebx + 0xc], 0
jl 0x422a13
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x422a13
push ecx
call fcn.0042b060
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00421db0
add esi, 0x10
mov dword [edi], esi
jmp 0x422bf6
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0042b160
jmp 0x422bf4
push 0x590dfc
lea ecx, [ebp + 8]
call fcn.004291e0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.004225d0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00428bb0
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00428bb0
add esp, 8
add edi, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov ebx, dword [edi]
lea edx, [ecx - 0x10]
sub ebx, 0x10
cmp edx, ebx
je 0x422aa8
cmp dword [ebx + 0xc], 0
jl 0x422a9d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x422a9d
push edx
call fcn.0042b060
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00421db0
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x422aa8
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.0042b160
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x422b06
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x422c3c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x422c32
push 0
push dword [edx + 4]
call ebx
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x422b5b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x422c50
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x422c46
push 0
push dword [edx + 4]
call ebx
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x422bb0
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x422c64
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x422c5a
push 0
push dword [edx + 4]
call ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x422bf4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x422c6e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x422c6e
push 0
push dword [edx + 4]
call ebx
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x422c07
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422c1e
push 0x590df8
push dword [edi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422b06
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422b06
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422b5b
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422b5b
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422bb0
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x422bb0
mov ecx, edx
call esi
jmp 0x422bf4