Function at 0x40e2d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a060
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6b6224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040bb30
push 0x92
push dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00408100
lea eax, [ebp - 0x14]
push 0x63b61c
push eax
call fcn.00404ab0
mov esi, dword [eax]
sub esp, 0x10
mov edx, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x40e350
mov eax, dword [edx]
jmp 0x40e352
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x40e35e
xor ecx, ecx
jmp 0x40e36c
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e363
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.00404090
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.00405990
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004057f0
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
mov bl, al
test esi, esi
je 0x40e3c2
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x40e3c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40e3c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e3e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
test bl, bl
je 0x40e431
cmp dword [ecx + 0x14], 0x10
jb 0x40e404
mov eax, dword [ecx]
jmp 0x40e406
mov eax, ecx
push 3
push 0x63b6b4
mov byte [eax], 0
call fcn.00404090
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
call fcn.00405990
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [ebp - 4], 7
jmp 0x40e466
cmp dword [ecx + 0x14], 0x10
jb 0x40e43b
mov eax, dword [ecx]
jmp 0x40e43d
mov eax, ecx
push 3
push 0x63b6b8
mov byte [eax], 0
call fcn.00404090
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
call fcn.00405990
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
call fcn.00406140
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test esi, esi
je 0x40e495
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40e495
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40e495
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e4cc
mov ecx, dword [ebp - 0x18]
push 0x63b26b
push dword [ebp - 0x10]
call fcn.00407fb0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
nop dword [eax]
push 0x1f4
call ebx
sub esi, 1
jne 0x40e4c0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40e4eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret