Function at 0x416dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e51c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x7cf070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041ff50
cmp dword [0x7e87b4], 2
mov dword [ebp - 0x18], 0
jne 0x416ff5
mov ecx, str.DORXXXXXZft___2AFUZepprv__9_ESXZgsx__
call fcn.0045f920
push eax
lea eax, [ebp - 0x24]
push 0x7e80b8
push eax
call fcn.00404720
push 0x7e7fbc
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call fcn.004047f0
mov ebx, eax
mov ecx, str.HPTVVVVV_cdns__8:BBDNV_djnsvy__6___JLS
mov byte [ebp - 4], 1
call fcn.0045f920
push eax
lea eax, [ebp - 0x1c]
push 0x7e7fb4
push eax
call fcn.00404720
push 0x7e7fb8
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.004047f0
mov edi, eax
mov ecx, str.KPQiu__77_ETainq_1_DLSbekn7CI
mov byte [ebp - 4], 3
call fcn.0045f920
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00404720
push 0x7e7fbc
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.004047f0
add esp, 0x48
push 1
mov edx, ebx
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.0044dde0
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416ed8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416ef6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416f71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, str.LZ_____gtw_0_HWblot__014_KMYho_.8BCRV
call fcn.0045f920
push eax
lea eax, [ebp - 0x2c]
push 0x7e80b8
push eax
call fcn.00404720
push 0x7e7fbc
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
call fcn.004047f0
add esp, 0x18
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x28]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x416fc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x416fe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, 1
test ebx, ebx
cmovne eax, ecx
mov dword [ebp - 0x18], eax
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jle 0x417204
xor edi, edi
mov dword [ebp - 0x10], edi
test edi, edi
js 0x417218
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [esi + 0x40]
cmp dword [eax + edi + 0xc], 7
je 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
add eax, edi
mov ecx, str.NORTTTTTXkx__18_CPUWX___dderv__5CDSjrr
mov dword [ebp - 0x24], eax
call fcn.0045f920
test eax, eax
je 0x41721d
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x3c]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x417076
test dx, dx
je 0x417072
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x417076
add ecx, 4
add eax, 4
test dx, dx
jne 0x417050
xor eax, eax
jmp 0x41707b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [esi + 0x40]
push dword [eax + edi + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [esi + 0x40]
cmp dword [eax + edi + 0x10], 0
jne 0x4170e0
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov edi, eax
mov ecx, str.FINVVVVV_chmx_6AN_cfhit_..5__GIILOSamxz
add edi, dword [ebp - 0x10]
call fcn.0045f920
push eax
lea eax, [edi + 0x2c]
push eax
call fcn.004046c0
add esp, 8
test al, al
jne 0x417124
mov edi, dword [ebp - 0x10]
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [esi + 0x40]
cmp dword [eax + edi + 0x10], 1
jne 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov edi, eax
mov ecx, str.OV______dfmv0:_IORTeqr1_CMXZfuu__4
add edi, dword [ebp - 0x10]
call fcn.0045f920
push eax
lea eax, [edi + 0x28]
push eax
call fcn.004046c0
add esp, 8
test al, al
je 0x4171f1
cmp dword [0x7e87b0], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x417186
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [0x7e80bc]
test eax, eax
js 0x417218
cmp eax, dword [esi + 0x44]
jge 0x417218
mov ecx, dword [esi + 0x40]
lea edx, [eax + eax*2]
mov edi, dword [ebp - 0x10]
mov eax, ecx
shl edx, 5
mov eax, dword [edi + eax]
cmp eax, dword [edx + ecx]
jne 0x41718b
cmp ebx, dword [esi + 0x44]
jge 0x417218
push dword [ebp + 8]
add ecx, 0x3c
add ecx, edi
push ecx
call fcn.00417230
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x41718e
mov edi, dword [ebp - 0x10]
jmp 0x41718e
mov eax, dword [ebp - 0x14]
cmp ebx, dword [esi + 0x44]
jge 0x417218
push eax
mov eax, dword [esi + 0x40]
push dword [eax + edi + 0x10]
add eax, 0x3c
add eax, edi
push eax
call fcn.00417890
cmp dword [ebp - 0x18], 0
je 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
mov eax, dword [0x7e80bc]
test eax, eax
js 0x417218
cmp eax, dword [esi + 0x44]
jge 0x417218
mov ecx, dword [esi + 0x40]
lea edx, [eax + eax*2]
shl edx, 5
mov eax, dword [edi + ecx]
cmp eax, dword [edx + ecx]
jne 0x4171f4
cmp ebx, dword [esi + 0x44]
jge 0x417218
push dword [ebp - 0x14]
mov eax, ecx
mov ecx, esi
push dword [eax + edi + 0x10]
add eax, 0x3c
add eax, edi
push eax
call fcn.0041a360
jmp 0x4171f4
mov edi, dword [ebp - 0x10]
inc ebx
add edi, 0x60
mov dword [ebp - 0x10], edi
cmp ebx, dword [esi + 0x44]
jl 0x417005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004b03fc
push 0x80004005
call fcn.00402890
int3