Function at 0x48d13e
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x522cb8
call fcn.004fc6ce
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.0048d4a8
test al, al
jne 0x48d172
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x48d385
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d164
cmp dword [esi + 0x9c], 0x20
jle 0x48d19a
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x48d385
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 0x48d1be
cmp dword [ebp - 0x20], eax
je 0x48d1c5
call fcn.004f2996
xor ecx, ecx
cmp dword [ebp - 0x1c], esi
je 0x48d1f2
lea esi, [ebp - 0x20]
call fcn.0046bedd
mov eax, dword [eax + 8]
mov ecx, dword [edi]
push eax
push ecx
call fcn.004f52b9
pop ecx
pop ecx
test eax, eax
je 0x48d1eb
call fcn.004a499c
jmp 0x48d1ad
mov esi, dword [ebp + 8]
mov bl, 1
jmp 0x48d18c
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 0x48d325
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 0x48d325
mov edi, 0x590f51
push edi
mov esi, 0x7de
push esi
call fcn.004f5946
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x48d325
push edi
push 0x14
call fcn.004f5c13
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x48d325
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [0x590e04]
mov ecx, 0x590e04
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.00404477
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.0048da2c
push dword [ebp - 0x14]
lea eax, [ebp - 0x80]
push eax
call fcn.004a6757
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.0048da2c
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.004a34f7
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00405521
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00405521
lea esi, [ebp - 0x48]
call fcn.0048d8fd
test eax, eax
jne 0x48d362
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
call fcn.00405521
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x48d337
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], edi
je 0x48d341
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x18], edi
je 0x48d34f
push dword [ebp - 0x18]
call fcn.004f2b13
pop ecx
cmp ebx, edi
je 0x48d35a
push ebx
call fcn.004f1890
pop ecx
push dword [ebp + 8]
jmp 0x48d165
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.00405521
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
call fcn.004fc7a6
ret 8