Function at 0x421406
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x418
lea ebp, [esp - 4]
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x418], eax
push 0x48
mov eax, 0x4c8475
call fcn.00492deb
mov esi, ecx
push str.BoxTray.exe
push dword [esi + 0x50]
lea eax, [esi + 0x4c]
push 0x4d8598
push eax
mov dword [ebp - 0x1c], esi
call fcn.0040d022
push dword [esi + 0x50]
call fcn.00479d8b
mov eax, dword [esi + 0x1524]
add esp, 0x14
cmp eax, 2
je 0x42164e
cmp eax, 3
je 0x42164e
mov ebx, dword [esi + 0x50]
mov edi, str.IDR_ZIP_7ZA
call fcn.00421115
xor eax, eax
mov edi, 0x208
push edi
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00492200
add esp, 0xc
push dword [esi + 0x50]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call esi
push 0x4da938
lea eax, [ebp]
push eax
call esi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42164e
lea ebx, [ebp - 0x10]
call fcn.00421671
and dword [ebp - 4], 0
push str.IDR_ZIP_MAJOR
push 0x4da8b0
push dword [ebp - 0x10]
call fcn.0048023d
xor eax, eax
push edi
push eax
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push eax
call fcn.00492200
add esp, 0x18
lea eax, [ebp + 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x50f384
mov ecx, edi
lea esi, [ebp - 0x14]
call fcn.004080cd
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, esi
push str.safeboxinst__d_
push eax
call fcn.0040d022
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ebx, [ebp + 0x20c]
call fcn.0045fdff
mov ecx, edi
lea esi, [ebp - 0x18]
call fcn.004080cd
mov eax, ebx
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
mov eax, esi
push str.__s__x___s___o__s___aoa
push eax
call fcn.0040d022
xor edi, edi
push edi
push 0x7530
push edi
push dword [ebp - 0x18]
call fcn.004808c7
add esp, 0x24
mov eax, ebx
push eax
lea esi, [ebp - 0x38]
call fcn.00404bbf
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
push dword [eax + 0x50]
lea esi, [ebp - 0x54]
call fcn.00404bbf
xor ebx, ebx
inc ebx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.00460b6c
add esp, 0xc
push edi
push ebx
mov ecx, esi
call fcn.00405380
push edi
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00405380
push ebx
sub esp, 0x1c
lea eax, [ebp + 0x20c]
mov esi, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00404bbf
call fcn.0046079d
add esp, 0x20
push dword [ebp - 0x10]
lea esi, [ebp - 0x54]
call fcn.00404bbf
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004606a2
push 0
push ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00405380
lea eax, [ebp]
push eax
lea esi, [ebp - 0x38]
call fcn.00404bbf
mov edi, esi
mov byte [ebp - 4], 6
call fcn.004606a2
push 0
push ebx
mov ecx, esi
call fcn.00405380
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408396
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00408396
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.0048c64c
add ebp, 0x41c
leave
ret