Function at 0x425aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5089c8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x425c8a
cmp dword [ebp + 0xc], 0
je 0x425c8a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425c8a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040c140
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040c140
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
test eax, eax
jne 0x425b12
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c140
push dword [ebp + 0x1c]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.0040c140
push dword [ebp + 0x20]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040c140
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
mov dword [esi + 0x68], 0
call fcn.0040c500
push dword [ebp + 0xc]
lea ecx, [esi + 0x48]
call fcn.0040c500
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x425b6d
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x50]
call fcn.00433df0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x425b82
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.00433df0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x425b9e
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 8]
call fcn.00433df0
mov dword [esi + 0x68], 1
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], 0
je 0x425bcf
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 0x28]
call fcn.00433df0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x425bcf
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x38]
call fcn.00433df0
mov dword [esi + 0x68], 0x100
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x425bf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425c12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425c32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425c52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x425c73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c