Function at 0x402250
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call fcn.00403218
push ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x409acc], eax
test eax, eax
je 0x40246d
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
push ebx
push esi
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.00402f0c
push esi
mov edx, str.SXSEXP_v1.4.1_from_Dec_10_2023___c__2016___2023_hfiref0x_r_nExpand_compressed_files_from_WinSxS_folder__DCD01__DCN01__DCM01__DCS01_formats_._r_n
call fcn.00402f89
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea ecx, [ebp - 0x82c]
mov edx, 0x410
mov byte [ecx], bl
inc ecx
sub edx, 1
jne 0x4022c4
lea eax, [ebp - 0x830]
mov edx, esi
push eax
push ecx
lea eax, [ebp - 0x82c]
mov ecx, edi
push eax
call fcn.00402485
add esp, 0xc
cmp dword [ebp - 0x830], ebx
jbe 0x402461
mov edx, 0x404d9c
lea ecx, [ebp - 0x82c]
call fcn.004026be
test eax, eax
je 0x402461
mov ecx, 0x409b00
call fcn.00402de4
test eax, eax
jne 0x402328
mov edx, str.SXSEXP:_Fatal_error__failed_to_initialize_MsDelta_API
call fcn.0040302d
jmp 0x40246d
mov esi, 0x20a
lea eax, [ebp - 0x210]
mov ecx, esi
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402335
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [0x409b00]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402374
push 1
mov edx, str.SXSEXP:_Loaded_MsDelta.dll
call fcn.00402f89
push 1
lea edx, [ebp - 0x210]
call fcn.00402f89
pop ecx
pop ecx
mov edx, 0x404f84
lea ecx, [ebp - 0x82c]
call fcn.004026be
test eax, eax
jne 0x402396
mov ecx, edi
call fcn.0040209c
mov ebx, eax
jmp 0x40246d
mov ecx, esi
lea eax, [ebp - 0x210]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x40239e
push ecx
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00402786
add esp, 8
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4023df
mov edx, str.SXSEXP:_Source_Path_not_found
push 1
call fcn.00402f89
pop ecx
push 0x57
pop ebx
jmp 0x40246d
mov dword [ebp - 0x830], ebx
lea eax, [ebp - 0x41c]
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x4023eb
lea eax, [ebp - 0x830]
push eax
push ecx
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
push 2
pop edx
call fcn.00402485
add esp, 0xc
cmp dword [ebp - 0x830], ebx
jne 0x40241e
mov edx, str.SXSEXP:_Destination_Path_not_specified
jmp 0x4023cf
push ebx
mov edx, str.Processing_target_path:_t
call fcn.00402f89
push 1
lea edx, [ebp - 0x210]
call fcn.00402f89
pop ecx
pop ecx
call fcn.00402e49
test eax, eax
jne 0x40244b
mov edx, str.Failed_to_initialize_Cabinet_API
call fcn.0040302d
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x210]
call fcn.00401f72
jmp 0x40238f
push esi
mov edx, str.SXSEXP__Source_File___Destination_File__r_nSXSEXP__Source_Directory___Destination_Directory__r_nSXSEXP__d__Source_File___Source_Delta_File___Destination_File_
call fcn.00402f89
pop ecx
mov eax, dword [0x409acc]
test eax, eax
je 0x40247d
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]