Function at 0x420c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465137
mov eax, dword fs:[0]
push eax
sub esp, 0x188
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
sub eax, 0x1003
mov dword [ebp - 4], 0
je 0x420f0c
mov ebx, 1
sub eax, ebx
je 0x420d13
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x420ced
lea ecx, [ebp - 0x194]
push ecx
mov ecx, esi
call fcn.0041edd0
push 0x46d3e8
add eax, 8
push eax
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 6
call fcn.0040f8b0
add esp, 0xc
mov eax, dword [eax]
push 0x30
push 0x46d3d0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0041cab0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0xa
call fcn.00426e50
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041f2f0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0041be90
mov ecx, dword [esi + 0x70]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420d05
push 0
lea ecx, [esi + 0x6c]
call fcn.0041ae30
push 4
mov ecx, esi
call fcn.00420550
jmp 0x420f27
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420d2b
push 0x64
lea ecx, [esi + 0x6c]
call fcn.0041ae30
lea ecx, [ebp - 0x94]
call fcn.00427400
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi + 0xa8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
mov byte [ebp - 4], bl
call fcn.0040f2a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.0042b780
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00428560
lea ecx, [ebp - 0x114]
mov edi, eax
call fcn.00427400
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x114]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.00444fb0
mov ecx, eax
call fcn.00444d90
test edi, edi
je 0x420ee4
test eax, eax
je 0x420ee4
mov eax, dword [ebp + 0x18]
cmp dword [eax - 0xc], 0
je 0x420ee4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420ee4
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040f840
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040f840
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040f840
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040f840
mov edx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x94]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
call fcn.0042b780
mov ecx, eax
call fcn.00427c50
mov ecx, 0x484200
call fcn.00432010
test eax, eax
je 0x420ee4
test byte [0x483804], bl
jne 0x420e73
or dword [0x483804], ebx
mov ecx, 0x4837ec
mov byte [ebp - 4], 4
call fcn.00403df0
push 0x468be0
call fcn.004480c3
add esp, 4
mov byte [ebp - 4], 3
push 0x4837ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x484200
call fcn.00432040
push ebx
mov ecx, 0x484200
call fcn.00432170
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040fbe0
lea ecx, [ebp - 0x94]
call fcn.004276a0
push 0xdb
mov ecx, 0x484200
call fcn.00432170
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040fbe0
mov byte [ebp - 4], 5
call fcn.0042b780
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0042b3e0
push 0x4837ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], bl
call fcn.00426e50
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00426e50
push 0
mov ecx, esi
call fcn.00420550
jmp 0x420f27
mov eax, dword [esi + 0x70]
movzx edi, word [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420f27
push edi
lea ecx, [esi + 0x6c]
call fcn.0041ae30
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420f4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14