Function at 0x416b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f6188
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov esi, 8
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0x3c], esi
jb 0x416b93
mov eax, dword [edi + 0x28]
jmp 0x416b96
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416bdd
mov esi, dword [ebp + 8]
mov dword [edi + 0x20], 1
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
lea eax, [edi + 4]
push ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x24]
push eax
call fcn.00415ba0
mov dword [esp + 0x68], ebx
cmp dword [edi + 0x3c], esi
jb 0x416bf5
mov eax, dword [edi + 0x28]
jmp 0x416bf8
lea eax, [edi + 0x28]
test byte [esp + 0x4c], 0x30
jne 0x416c29
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.0041e300
add esp, 0xc
test al, al
je 0x416c29
lea ebx, [esp + 0x24]
call fcn.0041f480
test al, al
jne 0x416c53
xor ebx, ebx
mov dword [edi + 0x20], 1
lea eax, [edi + 4]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov ecx, edi
mov word [edi + 4], bx
call fcn.00402580
jmp 0x416e9f
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
call fcn.005a3149
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416c83
push 0x80004005
call fcn.004030f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x68], 1
call fcn.005a3149
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416cb2
push 0x80004005
call fcn.004030f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 2
push ecx
mov eax, esp
mov dword [eax], str.Item
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.0041e6e0
test al, al
je 0x416e3b
push ecx
mov eax, esp
mov dword [eax], str.homepage
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.00415c80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.0041a4d0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, esp
mov dword [eax], str.homepagetype
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.00415c80
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 4
call fcn.0041a4d0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 4], 1
jle 0x416d9c
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c750
mov ebx, dword [esp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x416da1
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [edi + 4]
call fcn.00402770
test ebx, ebx
jne 0x416dc2
xor eax, eax
jmp 0x416dd8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416dc7
sub eax, edx
sar eax, 1
js 0x416e31
cmp eax, dword [ebx - 8]
jg 0x416e31
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov eax, dword [esp + 0x14]
mov ecx, 0x60b43c
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416e16
test dx, dx
je 0x416e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x416df0
xor eax, eax
jmp 0x416e1b
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
test eax, eax
je 0x416cc7
mov dword [edi + 0x20], 3
jmp 0x416cc7
push 0x80070057
call fcn.004030f0
lea eax, [edi + 4]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push esi
mov ecx, edi
mov word [edi + 4], si
call fcn.00402580
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x68], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e9f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea esi, [esp + 0x24]
call fcn.0041e0f0
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4