Function at 0x461190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586681
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5e91b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp + 0xc]
push 0x5b7a18
call fcn.00401bf0
mov dword [ebp - 4], edi
mov esi, 1
mov dword [ebp - 0x20], esi
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4611f5
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], esi
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x461221
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46124e
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.004655e9
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46127b
push 0x80004005
call fcn.00402040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.004614a0
test al, al
jne 0x4612bc
push 0x5d89ec
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], str.his__GetFirmUpdateToolPathInTempFolder_____false
call fcn.0055b038
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne bl
movzx eax, bl
push eax
push esi
push str.__file::IsExist___s_____d_n
push 0x40000
push 0x5eb054
call fcn.0042e040
add esp, 0x14
test bl, bl
jne 0x4613a1
call fcn.0043e270
test al, al
jne 0x46130d
push 0x5d89ec
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], str.file.CreateBrFolderInTempFolder_____false
call fcn.0055b038
lea esi, [ebp - 0x18]
call fcn.0043e200
test al, al
jne 0x46132e
push 0x5d89ec
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], str.file.CreateFolder_____false
call fcn.0055b038
lea esi, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call fcn.0043ca10
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x46134f
mov dword [ebp + 8], edi
jmp 0x461355
mov eax, dword [eax + 0x20]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x44]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0043cab0
test al, al
jne 0x461381
push 0x5d89ec
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], str.download.Start__prt___strToolPath____false
call fcn.0055b038
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, edi
je 0x461393
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x4613a1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00401fb0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4613d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4613fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46141d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461440
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc