Function at 0x407600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1527
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5221ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x908], 0
lea esi, [ecx + 0x8f8]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x2d], 0
je 0x40765f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407654
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x4077fa
mov ecx, dword [0x5277e0]
test ecx, ecx
jne 0x4076d9
push 0x52212c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5277e0], 0
jne 0x4076c0
push 4
call fcn.0041d786
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4076a6
mov ecx, edi
mov dword [edi], 0
call fcn.004867f0
jmp 0x4076a8
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x5277e0], edi
mov edi, dword [ebp - 0x34]
push 0x52212c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5277e0]
test ecx, ecx
je 0x407796
push 0
push 0x4ebe30
lea eax, [ebp - 0x2c]
push eax
call fcn.00487750
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004136e0
add esp, 8
mov byte [ebp - 4], 2
cmp esi, eax
je 0x40771b
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x407710
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040a6c0
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x407759
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40774f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407890
push edx
push ecx
call fcn.0041d7b6
add esp, 8
push 1
push 0x4eb938
mov ecx, esi
call fcn.0040a430
cmp dword [ebp - 0x18], 8
mov ecx, eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040a430
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407787
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x4077b9
lea ecx, [ebp - 0x2c]
call fcn.00404ca0
mov bl, byte [ebp - 0x2d]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d647
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4077fa
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407895
push edx
push ecx
call fcn.0041d7b6
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x407802
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407820
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040a6c0
push 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 3
push edi
push eax
call fcn.00413880
mov edx, dword [ebp - 0x38]
add esp, 0xc
mov bl, al
cmp edx, 8
jb 0x407799
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407881
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40789a
push edx
push ecx
call fcn.0041d7b6
add esp, 8
jmp 0x407799
call fcn.004b71ee
call fcn.004b71ee
call fcn.004b71ee
int3