Function at 0x405790
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
push str.Patch_enter
push 0x8e
push str.D:qci_workspace_root_workspaces__qci_pipeline_10991585_1QQPCMgrPacket_srcMainUpdateTrayIconTrayIconTrayIcon.cpp
push 2
push 0x470efc
call fcn.00404f70
add esp, 0x14
cmp byte [esi + 0x1e], 0
je 0x4057ea
mov al, 1
jmp 0x405a69
push 0x1f
xor eax, eax
mov dword [ebp - 0x40], 0
push str.C:WindowsSystem32Taskbar.dll
lea ecx, [ebp - 0x40]
mov byte [esi + 0x1e], 1
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x17
xor eax, eax
mov dword [ebp - 0x28], 0
push str.C:WindowsExplorer.exe
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402a20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x54]
push 2
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.0040ba80
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov esi, dword [ebp - 0x54]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
nop dword [eax]
push edi
mov ecx, esi
call fcn.00402670
add esi, 0x18
lea eax, [ebp - 0x10]
add edi, 0x18
mov dword [ebp - 0x64], esi
cmp edi, eax
jne 0x405890
push ecx
mov edx, esi
mov ecx, esi
call fcn.0040b6a0
add esp, 4
mov dword [ebp - 0x50], esi
push fcn.00402750
push 2
push 0x18
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.0042e2e4
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], eax
cmp esi, eax
je 0x405a39
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4058f2
mov eax, dword [esi]
push eax
push str.parse_file:_s_n
call fcn.0040c590
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40590a
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x6c], esi
cmp esi, 0xffffffff
je 0x405a03
test esi, esi
je 0x405a03
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 7
cmp edi, 0xffffffff
je 0x4059cb
test edi, edi
je 0x4059cb
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x405997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MapViewOfFile_failed__err:_d_n
call fcn.0040c560
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov byte [ebp - 4], 5
jmp 0x405a24
mov eax, dword [ecx + 0x3c]
add eax, ecx
push eax
push ecx
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
call fcn.00405e00
mov ecx, dword [ebp - 0x44]
test al, al
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], ecx
call edi
mov byte [ebp - 4], 5
jmp 0x405a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileMapping_failed__err:_d_n
call fcn.0040c560
add esp, 8
cmp edi, 0xffffffff
je 0x4059f7
test edi, edi
je 0x4059f7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov byte [ebp - 4], 5
jmp 0x405a24
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 5
jmp 0x405a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed__err:_d_n
call fcn.0040c560
add esp, 8
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x405a27
test esi, esi
je 0x405a27
push esi
call edi
mov esi, dword [ebp - 0x48]
add esi, 0x18
mov dword [ebp - 0x48], esi
cmp esi, dword [ebp - 0x58]
jne 0x4058e8
mov eax, dword [ebp - 0x44]
movzx eax, al
push eax
push str.Patch_leave_bPathResult:_d
push 0xb5
push str.D:qci_workspace_root_workspaces__qci_pipeline_10991585_1QQPCMgrPacket_srcMainUpdateTrayIconTrayIconTrayIcon.cpp
push 2
push 0x470efc
call fcn.00404f70
add esp, 0x18
lea ecx, [ebp - 0x54]
call fcn.00408950
mov al, byte [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dc42
mov esp, ebp
pop ebp
ret