Function at 0x485cdd
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x51848d
call fcn.004f215e
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
call fcn.00486047
test al, al
jne 0x485d11
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x485f24
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x485d03
cmp dword [esi + 0x9c], 0x20
jle 0x485d39
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x485f24
lea ebx, [esi + 0xd4]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov ecx, dword [ebx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
je 0x485d5d
cmp dword [ebp - 0x20], eax
je 0x485d64
call fcn.004e8466
xor ecx, ecx
cmp dword [ebp - 0x1c], esi
je 0x485d91
lea esi, [ebp - 0x20]
call fcn.0046059e
mov eax, dword [eax + 8]
mov ecx, dword [edi]
push eax
push ecx
call fcn.004ead89
pop ecx
pop ecx
test eax, eax
je 0x485d8a
call fcn.0049c3a2
jmp 0x485d4c
mov esi, dword [ebp + 8]
mov bl, 1
jmp 0x485d2b
mov eax, dword [edi]
push ecx
push 0x42000000
push 3
push ecx
push 3
push 1
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x485ec4
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x485ec4
mov edi, 0x582e91
push edi
mov esi, 0x7de
push esi
call fcn.004eb416
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x485ec4
push edi
push 0x14
call fcn.004eb6e3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x485ec4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [0x582d44]
mov ecx, 0x582d44
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x44]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x40], ebx
call fcn.004044e5
mov eax, dword [ebp - 0x18]
sub esp, 0x18
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x48]
mov esi, esp
mov dword [ebp - 0x38], eax
mov dword [ebp + 0xc], esp
call fcn.004865d6
push dword [ebp - 0x14]
lea eax, [ebp - 0x80]
push eax
call fcn.0049db2b
add esp, 0x20
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edi, [eax + 4]
lea esi, [ebp - 0x60]
mov dword [ebp - 0x64], ecx
call fcn.004865d6
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp + 8]
add eax, 0xd4
push eax
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0049afa2
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.0040557a
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040557a
lea esi, [ebp - 0x48]
call fcn.0048649c
test eax, eax
jne 0x485f01
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040557a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x485ed6
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], edi
je 0x485ee0
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x485eee
push dword [ebp - 0x18]
call fcn.004e85e3
pop ecx
cmp ebx, edi
je 0x485ef9
push ebx
call fcn.004e7360
pop ecx
push dword [ebp + 8]
jmp 0x485d04
mov esi, dword [ebp + 8]
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.0040557a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
call fcn.004f2236
ret 8