Function at 0x40dba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x46c018]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.0040ce10
test eax, eax
je 0x40e020
call fcn.00415480
cmp eax, 8
jne 0x40dc03
push str.Shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40dc03
push str.SetProcessDpiAwareness
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dbfc
push 1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x46eeb4], 0
jne 0x40e020
mov ecx, dword [0x46eec4]
cmp dword [ecx - 0xc], 0
je 0x40dc3c
push 0
push ecx
call fcn.0043b291
mov ecx, dword [0x46eec4]
add esp, 8
cmp eax, 0xffffffff
jne 0x40dc3c
call fcn.0040f570
jmp 0x40e020
cmp dword [0x46eebc], 0
je 0x40dc56
cmp dword [ecx - 0xc], 0
je 0x40dc56
call fcn.004142c0
mov ecx, dword [0x46eec4]
or ebx, 0xffffffff
cmp dword [0x46eeb8], 0
je 0x40dd98
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push edi
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x40d9e0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x65
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 6
mov dword [esp + 0x40], str.UpdateTrayIcon
mov dword [esp + 0x3c], 0
call esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push SysReAllocString
push 0x46361c
push str.UpdateTrayIcon
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x40dd1b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0040e0c0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov esi, 5
mov ecx, dword [esp + 0xc]
call fcn.00414c40
test eax, eax
jne 0x40dd74
push 0x3e8
call edi
dec esi
test esi, esi
jg 0x40dd33
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x50024
push 0x46361c
push 0x463640
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40e039
mov edx, dword [esp + 0xc]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dd92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x46eec4]
cmp dword [ecx - 0xc], 0
je 0x40ddd2
call fcn.0040d590
lea ecx, [esp + 0xc]
call fcn.00410ea0
mov ecx, dword [eax]
call fcn.0040d590
mov edx, dword [esp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ddcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x46eec4]
cmp dword [0x46eec0], 0
je 0x40df99
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40deba
cmp dword [esp + 0xc], 0
je 0x40deba
push 0x208
lea eax, [esp + 0x44]
push 0
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.UpdateTrayIcon64.exe
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x40]
push eax
call esi
push eax
lea eax, [esp + 0x44]
push eax
push str.pre_run_path:_s_exists:_d
push 0x322
push str.D:qci_workspace_root_workspaces__qci_pipeline_10991585_1QQPCMgrPacket_srcMainUpdateTrayIconUpdateTrayIcon.cpp
push 2
push 0x46eef4
call fcn.00404f10
add esp, 0x10
lea ecx, [esp + 0x4c]
call fcn.00414590
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call esi
push eax
lea eax, [esp + 0x44]
push eax
push str.post_run_path:_s_exists:_d
push 0x324
push str.D:qci_workspace_root_workspaces__qci_pipeline_10991585_1QQPCMgrPacket_srcMainUpdateTrayIconUpdateTrayIcon.cpp
push 2
push 0x46eef4
call fcn.00404f10
add esp, 0x1c
jmp 0x40df8e
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
mov byte [esp + 0x30], 0
mov byte [esp + 0x32], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0xc
push 0x4638d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x35], 0
call fcn.004029b0
cmp byte [esp + 0x2c], 0
jne 0x40df30
push 0x462c74
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0x2c], 0
test eax, eax
je 0x40df35
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x10]
call fcn.00405360
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40df52
cmp eax, 0xffffffff
je 0x40df52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x40df8e
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40df84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e052
push edx
push ecx
call fcn.0042cd10
add esp, 8
call fcn.0040da10
mov ecx, dword [0x46eec4]
cmp dword [0x46eeb0], 0
je 0x40e020
cmp dword [ecx - 0xc], 0
je 0x40e020
mov edx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40dfc5
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [esp + 0x18]
call fcn.004029b0
lea ecx, [esp + 0x10]
call fcn.00401220
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x40e020
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e016
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e057
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov ecx, dword [esp + 0x24c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret 0x10
push 0x46366c
call fcn.0040c500
add esp, 4
call fcn.0040f810
push 0
call fcn.0043a608
call fcn.0043182f
call fcn.0043182f
int3