Function at 0x408469
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a1e5
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4b2d60]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2d60]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov edi, ecx
push str.LetProductUseArmReportData...
lea ecx, [esp + 0x18]
call fcn.004012e2
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
pop ebx
push ebx
mov dword [esp + 0x374], esi
call fcn.00411806
or dword [esp + 0x374], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [edi + 0x17c]
push eax
lea ecx, [esp + 0x20]
call fcn.00401326
mov dword [esp + 0x368], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jne 0x408554
push str.Missing_module_path
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], bl
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov esi, 0xe8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
jmp 0x408b33
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408595
push str.Missing_module_file
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 3
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov esi, ebx
jmp 0x408541
push 0x2e
lea ecx, [esp + 0x20]
call fcn.00408b57
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4085e2
push str.Invalid_module_path
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 4
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push 0xd
pop esi
jmp 0x408541
add edi, 0x180
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.00401326
mov byte [esp + 0x368], 5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax - 0xc]
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
dec eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00408b9f
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.00408b79
push 0x4794fc
mov ecx, edi
call fcn.004074fe
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x4086ad
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
lea esi, [esp + 0x3c]
call fcn.00412634
mov eax, esi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.00412a5f
xor edi, edi
cmp eax, edi
je 0x408712
push str.unable_to_get_value_names_from_report_file
lea ecx, [esp + 0x18]
call fcn.004012e2
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xa
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x4086fe
push 0x479504
lea ecx, [esp + 0x24]
call fcn.004074fe
test eax, eax
jne 0x408ad8
cmp dword [ebx - 0xc], esi
jne 0x408646
push str.Missing_module_usage
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 7
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebx - 0x10]
jmp 0x4085d5
call fcn.0043f3c0
push eax
lea ecx, [esp + 0x30]
call fcn.004013a1
push 0x4795b8
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.004012e2
mov byte [esp + 0x368], 0xc
mov esi, dword [esp + 0x14]
jmp 0x40880c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x4087ff
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edi
call fcn.00412960
cmp eax, edi
jne 0x4087ff
cmp dword [esp + 0x28], edi
je 0x4087ff
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], edi
je 0x408796
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00401163
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0040107c
add esp, 0xc
mov byte [esp + 0x368], 0xd
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00407458
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x36c], 0xe
call fcn.00401103
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [esp + 0x368], 0xc
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017df
push dword [esp + 0x28]
call fcn.0043f022
pop ecx
push edi
push esi
call fcn.00450dc2
inc eax
pop ecx
inc eax
pop ecx
mov esi, eax
cmp word [esi], di
jne 0x408748
push dword [esp + 0x14]
call fcn.0043f022
mov esi, dword [esp + 0x30]
pop ecx
cmp dword [esi - 0xc], edi
jne 0x40886e
push str.no_report_data_collected
lea ecx, [esp + 0x18]
call fcn.004012e2
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xf
call fcn.00411806
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
jmp 0x40869e
cmp dword [esp + 0x18], edi
je 0x4089c1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401326
mov byte [esp + 0x368], 0x10
cmp dword [ebx - 0xc], edi
je 0x4088d4
push 0x4795f4
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00407458
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.004071c6
mov byte [esp + 0x368], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017df
push edi
push edi
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x28]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
mov dword [esp + 0x28], eax
jge 0x408980
push 0x4795f8
lea ecx, [esp + 0x18]
call fcn.004012e2
mov byte [esp + 0x368], 0x12
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.00411336
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [edi - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x408b33
lea ecx, [edi - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov esi, dword [esp + 0x28]
jmp 0x408541
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x408a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004012e2
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 2
mov byte [esp + 0x378], 0x13
call fcn.00411336
add esp, 0x10
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esi - 0x10]
call fcn.004017df
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017df
lea ecx, [ebx - 0x10]
call fcn.004017df
mov esi, edi
jmp 0x408541
push 0x104
lea eax, [esp + 0x250]
push edi
push eax
call fcn.00450cb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea eax, [esp + 0x250]
push 0x104
push eax
lea edi, [esp + 0x40]
call fcn.00434331
add esp, 0xc
test eax, eax
je 0x40893d
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408aa5
push esi
call eax
jmp 0x40893d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004012e2
push edi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 0x14
call fcn.00411806
add esp, 0xc
jmp 0x408a06
push str.Unknown_module_type
lea ecx, [esp + 0x1c]
call fcn.004012e2
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 8
call fcn.00411806
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, 0xbe
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0044ff92
mov esp, ebp
pop ebp
ret