Function at 0x4176c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44845b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x462304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.00408280
add esp, 8
mov ecx, dword [ebp + 0x10]
xor edx, edx
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.00416ec0
test eax, eax
jl 0x41772a
mov dword [ebp - 0x240], 1
jmp 0x417734
mov dword [ebp - 0x240], 0
push 0x450238
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00416e00
test eax, eax
jl 0x41775a
mov dword [ebp - 0x244], 1
jmp 0x417764
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov dword [ebp - 0x248], eax
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x220]
call fcn.00405190
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.0040ba30
movzx eax, al
test eax, eax
jne 0x417877
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4177c1
mov byte [ebp - 0x219], 1
jmp 0x4177c8
mov byte [ebp - 0x219], 0
movzx ecx, byte [ebp - 0x219]
push ecx
call fcn.00408c40
add esp, 4
movzx edx, al
test edx, edx
je 0x417836
push 0
call fcn.00406420
add esp, 4
mov dword [ebp - 0x27c], eax
xor eax, eax
je 0x41780b
push 0
push 0x4500d0
push 0xc8
mov ecx, dword [ebp + 4]
push ecx
call fcn.00415cc0
add esp, 0x10
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x24c]
jmp 0x417b18
xor eax, eax
jne 0x4177ad
push 0x4500d0
push 0xc9
mov ecx, dword [ebp + 4]
push ecx
call fcn.00415c50
add esp, 0xc
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x250]
jmp 0x417b18
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x220]
call fcn.0041a040
push eax
call fcn.00410dd0
add esp, 8
push eax
call fcn.00406420
add esp, 4
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x417914
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
push ecx
push 0x4500d0
push 0xcf
mov edx, dword [ebp + 4]
push edx
call fcn.00415cc0
add esp, 0x10
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x254]
jmp 0x417b18
xor edx, edx
jne 0x41788b
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x417a9b
push 0x450240
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00416e00
test eax, eax
jl 0x41794e
mov dword [ebp - 0x258], 1
jmp 0x417958
mov dword [ebp - 0x258], 0
lea edx, [ebp - 0x218]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405190
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.00405880
add esp, 8
movzx edx, al
test edx, edx
je 0x4179e8
push 0x4500d0
push 0xd5
mov eax, dword [ebp + 4]
push eax
call fcn.00415c50
add esp, 0xc
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040b030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x260]
jmp 0x417b18
xor ecx, ecx
jne 0x417988
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x224]
call fcn.0041a040
push eax
call fcn.00410dd0
add esp, 8
push eax
call fcn.00406420
add esp, 4
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jge 0x417a84
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
push 0x4500d0
push 0xd7
mov edx, dword [ebp + 4]
push edx
call fcn.00415cc0
add esp, 0x10
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040b030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x264]
jmp 0x417b18
xor edx, edx
jne 0x4179ec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0040b030
mov eax, dword [ebp - 0x238]
cdq
mov cl, 0x1f
call fcn.004461a0
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x23c]
cdq
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], edx
push 1
mov eax, dword [ebp + 0x14]
push eax
call fcn.00408280
add esp, 8
mov ecx, dword [ebp - 0x270]
or ecx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x26c]
or edx, dword [ebp - 0x274]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b030
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446150
mov esp, ebp
pop ebp
ret