Function at 0x422560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac3d6
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4ef6d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 0x41], 0
cmp dword [edi + 0x14], 8
jb 0x42259e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422860
cmp dword [edi + 0x14], 8
mov esi, edi
jb 0x4225b7
mov esi, dword [edi]
call fcn.004080e0
mov ecx, eax
test ecx, ecx
je 0x422880
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00407d90
test al, al
jne 0x42260d
test esi, esi
jne 0x4225ef
xor ecx, ecx
jmp 0x422603
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4225f4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00409020
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0045ab90
add esp, 8
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422643
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x4c28b0
push dword [ebp - 0x54]
call fcn.00479589
add esp, 8
test eax, eax
jne 0x422845
mov ecx, dword [ebp - 0x50]
push edi
call fcn.00422cb0
mov dword [ebp - 0x4c], eax
test eax, eax
jle 0x42271e
mov eax, dword [0x4f4a6c]
test al, 1
jne 0x42269f
or eax, 1
mov dword [0x4f4a6c], eax
mov ecx, 0x4f4a3c
mov byte [ebp - 4], 4
call fcn.0040c770
push 0x4b3c40
call fcn.0043d1c3
add esp, 4
mov byte [ebp - 4], 3
push 0
push 0
sub esp, 0x28
mov dword [ebp - 0x30], 0x424cb0
mov esi, esp
lea ecx, [ebp - 0x2c]
push edi
call fcn.004152d0
movups xmm0, xmmword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x50]
mov dword [esi], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CPluginMgr__AEXV__basic_string__WU__char_traits__W_std__V__allocator__W_2__2__ZPAV3_ABV42__std__XPAX_std__.0
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmmword [esi + 8], xmm0
mov dword [ebp - 0x14], ecx
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [esi + 0x24], esi
call fcn.0040f9e0
push dword [ebp - 0x4c]
mov ecx, 0x4f4a3c
call fcn.0040cc40
jmp 0x422845
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x4c], eax
jb 0x42273a
mov edi, dword [edi]
cmp eax, 8
jae 0x42274f
movups xmm0, xmmword [edi]
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
jmp 0x42278a
mov esi, eax
lea ecx, [ebp - 0x40]
mov eax, SysReAllocString
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040a2e0
mov ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.0046a8e0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
push 0x10
push 0x4c28bc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040a7c0
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x40]
push 1
push 1
push eax
mov byte [ebp - 4], 6
call fcn.00424830
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x41], al
cmp edx, 0x10
jb 0x4227fd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4227f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42288a
push edx
push ecx
call fcn.0043cf22
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x422845
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42283b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42288f
push edx
push ecx
call fcn.0043cf22
add esp, 8
mov edx, dword [ebp - 0x54]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422860
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d1d8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407b40
call fcn.0046e938
call fcn.0046e938
int3