Function at 0x40d600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b35f9
mov eax, dword fs:[0]
push eax
sub esp, 0xc9c
mov eax, dword [0x5603e8]
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
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xca0], ecx
mov dword [ebp - 0xc94], ebx
mov dword [ebp - 0xc9c], edi
mov dword [ebp - 0xc7c], 0
cmp eax, 3
je 0x40d66d
push eax
push edi
call fcn.0040ba60
test eax, eax
jne 0x40d66d
mov eax, 1
jmp 0x40de2f
test ebx, ebx
je 0x40de2a
cmp word [ebx], 0
je 0x40de2a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40de2a
cmp word [esi], 0
je 0x40de2a
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0xc3e]
push ecx
mov dword [ebp - 0xc8c], 0x80004005
mov word [ebp - 0xc40], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
mov eax, edi
call fcn.0040cd20
mov dword [ebp - 0xc84], eax
test eax, eax
jne 0x40d6f2
mov eax, 0x80004005
jmp 0x40de2f
lea edx, [ebp - 0x830]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d700
lea eax, [ebp - 0x830]
lea edx, [eax + 2]
jmp 0x40d720
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d720
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x832], 0x5c
je 0x40d757
lea edi, [ebp - 0x830]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d743
mov ecx, dword [0x4c7780]
mov dword [edi], ecx
lea edx, [ebp - 0xc40]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d761
mov ecx, dword [ebp - 0xc84]
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d780
lea edi, [ebp - 0xc40]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40d796
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
cmp dword [ebp - 0xc9c], 0xe
lea ebx, [edi + 2]
je 0x40d7e7
mov eax, dword [ebp - 0xc9c]
test eax, eax
je 0x40d7e7
cmp eax, 2
je 0x40d7e7
cmp eax, ebx
je 0x40d7e7
cmp eax, 3
je 0x40d7e7
cmp eax, 0x11
je 0x40d7e7
cmp eax, 0x12
jne 0x40d884
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x40d838
sub eax, ebx
jne 0x40d884
push str.__fromdesktop_shortcut
lea ecx, [ebp - 0xc90]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov esi, dword [ebp - 0xc84]
push ebx
lea edx, [ebp - 0xc90]
push edx
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::remove_class_QString_const___enum_Qt::CaseSensitivity_]
lea ecx, [ebp - 0xc90]
mov dword [ebp - 4], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.__fromstartmenu
jmp 0x40d87b
push str.__fromstartmenu
lea ecx, [ebp - 0xc88]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov esi, dword [ebp - 0xc84]
push ebx
lea eax, [ebp - 0xc88]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::remove_class_QString_const___enum_Qt::CaseSensitivity_]
lea ecx, [ebp - 0xc88]
mov dword [ebp - 4], edi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push str.__fromdesktop_shortcut
lea ecx, [esi + 4]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::append_char_const__]
mov esi, dword [ebp - 0xc84]
cmp byte [esi + 0x1c], 0
je 0x40d8c0
lea ecx, [ebp - 0xc98]
push ecx
call dword [sym.imp.ksolite.dll_class_QString___cdecl_krt::dirs::launchName_void_]
add esp, 4
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::compare_class_QString_const___enum_Qt::CaseSensitivity_const]
test eax, eax
jne 0x40d8c0
mov bl, 1
jmp 0x40d8c2
xor bl, bl
test byte [ebp - 0xc7c], 1
mov dword [ebp - 4], 0xffffffff
je 0x40d8e5
and dword [ebp - 0xc7c], 0xfffffffe
lea ecx, [ebp - 0xc98]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
je 0x40d968
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 1
push 0
push 0x1f4
call fcn.0043baf0
lea edi, [ebp - 0x420]
mov dword [ebp - 0xc8c], eax
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d930
mov ecx, 7
mov esi, 0x4c89b0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x420]
mov word [ebp + eax - 0xc40], cx
add eax, 2
test cx, cx
jne 0x40d950
push 0x4c83d8
lea ecx, [ebp - 0xc88]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov ebx, dword [ebp - 0xc7c]
mov esi, dword [ebp - 0xc84]
lea edx, [ebp - 0xc88]
or ebx, 2
push edx
mov ecx, esi
mov dword [ebp - 4], 3
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QString::compare_class_QString_const__const]
test eax, eax
je 0x40d9c0
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xc7d], 1
test eax, eax
jne 0x40d9c7
mov byte [ebp - 0xc7d], 0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x40d9e8
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc88]
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp byte [ebp - 0xc7d], 0
je 0x40dbb0
lea ecx, [esi + 8]
push ecx
lea ecx, [ebp - 0xc98]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea edx, [esi + 0xc]
push edx
lea ecx, [ebp - 0xc90]
mov dword [ebp - 4], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
add esi, 0x14
mov ecx, esi
mov byte [ebp - 4], 5
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
je 0x40da44
lea ecx, [ebp - 0xca4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_void_]
mov byte [ebp - 4], 6
or ebx, 4
jmp 0x40da85
mov eax, dword [ebp - 0xc94]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0xca8]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
push esi
push eax
lea edx, [ebp - 0xc8c]
or ebx, 8
push edx
mov dword [ebp - 4], 7
mov dword [ebp - 0xc7c], ebx
call fcn.00408080
add esp, 0x18
mov dword [ebp - 4], 8
or ebx, 0x10
push eax
lea ecx, [ebp - 0xc88]
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov dword [ebp - 4], 0xa
test bl, 0x10
je 0x40dab9
and ebx, 0xffffffef
lea ecx, [ebp - 0xc8c]
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [ebp - 4], 0xb
test bl, 8
je 0x40dad7
and ebx, 0xfffffff7
lea ecx, [ebp - 0xca8]
mov dword [ebp - 0xc7c], ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [ebp - 4], 0xc
test bl, 4
je 0x40daec
lea ecx, [ebp - 0xca4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ebx, dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
lea ecx, [ebp - 0xc98]
call ebx
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db00
lea edi, [ebp - 0x830]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40db16
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc84]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0xc88]
call ebx
mov edx, dword [ebp - 0xc9c]
push eax
push edx
lea ecx, [ebp - 0xc90]
call ebx
push eax
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0xc40]
push ecx
mov ecx, dword [ebp - 0xca0]
call fcn.0040cd60
lea ecx, [ebp - 0xc88]
mov dword [ebp - 0xc8c], eax
mov byte [ebp - 4], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0xc90]
mov byte [ebp - 4], 4
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0xc98]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp - 0xc8c]
jmp 0x40de2f
mov edx, dword [str._wpsupdate.exe_]
push edx
lea ecx, [ebp - 0xc78]
call fcn.00405cd0
push 0x4c89ac
lea ecx, [ebp - 0xc5c]
mov dword [ebp - 4], 0xd
call fcn.00405cd0
mov ecx, esi
mov byte [ebp - 4], 0xe
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00409b10
push 0x4c89ac
lea ecx, [ebp - 0xc5c]
call fcn.00409b10
cmp dword [ebp - 0xc48], 8
mov eax, dword [ebp - 0xc5c]
jae 0x40dc16
lea eax, [ebp - 0xc5c]
mov ecx, dword [ebp - 0xc4c]
push ecx
push 0
push eax
lea ecx, [ebp - 0xc78]
call fcn.00408640
cmp eax, 0xffffffff
je 0x40de0c
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 1
push 0
push 1
call fcn.0043baf0
mov dword [ebp - 0xc8c], eax
test eax, eax
jne 0x40de0c
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc80
mov ebx, dword [0x4c7780]
mov eax, dword [str.wtoolex]
mov dword [edi], ebx
mov edx, eax
jmp 0x40dca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dca0
lea edi, [ebp - 0x420]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dcb6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
jmp 0x40dce0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dce0
mov dword [edi], ebx
mov ebx, dword [ebp - 0xc84]
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dd00
lea edi, [ebp - 0x420]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dd16
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x420]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40de0c
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0xc94]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [ebp - 0xc84]
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 0x10
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov esi, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dd80
lea edi, [ebp - 0x830]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dd96
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc9c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x18]
push edx
push 0x4c79ac
push eax
lea ecx, [ebp - 0xc84]
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
lea ecx, [ebp - 0x830]
push ecx
mov ecx, dword [ebp - 0xca0]
lea edx, [ebp - 0x420]
push edx
call fcn.0040cd60
lea ecx, [ebp - 0xc84]
mov dword [ebp - 0xc8c], eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0xc5c]
call fcn.004a9f30
lea ecx, [ebp - 0xc78]
call fcn.004a9f30
mov eax, dword [ebp - 0xc8c]
jmp 0x40de2f
mov eax, 0x80070057
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.004b12f6
mov esp, ebp
pop ebp
ret 0x10