Function at 0x4246c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x45c]
sub esp, 0x45c
push 0xffffffffffffffff
push 0x53da78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58313c]
xor eax, ebp
mov dword [ebp + 0x458], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x464]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x468]
or esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0
cmp byte [eax], 0
je 0x42474a
lea eax, [ebp + 0x468]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call edi
mov byte [ebp - 4], 0
cmp eax, esi
jne 0x4247d1
mov eax, dword [ebp + 0x468]
push str..lnk
push ecx
mov ecx, esp
mov dword [ecx], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x424761
lock inc dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004101a0
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00421250
mov eax, dword [ebp + 0x468]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x468], ecx
lea ecx, [eax - 8]
cmp ecx, 0x583008
je 0x4247aa
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4247aa
push ecx
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff8
mov byte [ebp - 4], 0
cmp ecx, 0x583008
je 0x4247d1
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4247d1
push ecx
call fcn.005128b5
add esp, 4
mov eax, dword [ebp + 0x468]
cmp byte [eax], 0
je 0x424964
lea eax, [ebp + 0x468]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call edi
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
je 0x424964
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push 0x552010
push 1
push 0
push 0x55a968
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42493c
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x42493f
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x424856
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x5520ac
push esi
call edi
test eax, eax
js 0x42493c
mov esi, dword [ebp - 0x10]
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
lea eax, [ebp + 0x468]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414490
add esp, 8
push 0
push dword [eax]
push esi
call edi
test eax, eax
js 0x42493c
cmp byte [ebp + 0x46c], 0
je 0x4248b9
mov eax, dword [ebp - 0x14]
push 3
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x42493c
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.005153c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
movzx ecx, byte [ebp + 0x46c]
xor ecx, 1
lea ecx, [ecx*4 + 2]
push ecx
lea ecx, [ebp]
push ecx
push 0x104
lea ecx, [ebp + 0x250]
push ecx
push eax
call edx
test eax, eax
js 0x42493c
lea eax, [ebp + 0x250]
push eax
push ebx
call fcn.0040a680
add esp, 8
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x42491e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x42492f
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
lea ecx, [ebp + 0x468]
call fcn.00406ce0
jmp 0x42498d
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 8
test eax, eax
je 0x424953
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 9
test esi, esi
je 0x424961
mov eax, dword [esi]
push esi
call dword [eax + 8]
or esi, 0xffffffff
mov eax, dword [ebp + 0x468]
add eax, 0xfffffff8
mov dword [ebx], 0x583010
cmp eax, 0x583008
je 0x42498d
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x42498d
push eax
call fcn.005128b5
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.00512b0b
lea esp, [ebp + 0x45c]
pop ebp
ret