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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d516
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x498d50]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x498d50]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov esi, ecx
push str.LetProductUseArmReportData...
lea ecx, [esp + 0x18]
call fcn.00402060
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 2
pop edi
push edi
mov dword [esp + 0x374], ebx
call fcn.00411fb7
or dword [esp + 0x374], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [esi + 0x528]
push eax
lea ecx, [esp + 0x20]
call fcn.004020a4
mov dword [esp + 0x368], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x409ef8
push str.Missing_module_path
lea ecx, [esp + 0x18]
call fcn.00402060
push ebx
lea eax, [esp + 0x18]
push eax
push edi
mov byte [esp + 0x374], 2
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, 0xe8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
jmp 0x40a4ca
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409f39
push str.Missing_module_file
lea ecx, [esp + 0x18]
call fcn.00402060
push ebx
lea eax, [esp + 0x18]
push eax
push edi
mov byte [esp + 0x374], 3
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, edi
jmp 0x409ee5
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0040a4ee
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x409f86
push str.Invalid_module_path
lea ecx, [esp + 0x18]
call fcn.00402060
push ebx
lea eax, [esp + 0x18]
push eax
push edi
mov byte [esp + 0x374], 4
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 0xd
pop esi
jmp 0x409ee5
add esi, 0x52c
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
call fcn.004020a4
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.0040a536
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.0040a510
push 0x46aa74
mov ecx, edi
call fcn.00409001
mov esi, dword [esp + 0x34]
test eax, eax
jne 0x40a04f
mov dword [esp + 0x18], 1
lea edi, [esp + 0x3c]
mov dword [esp + 0x14], ebx
call fcn.004121a9
mov eax, edi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.004125df
cmp eax, ebx
je 0x40a0b0
push str.unable_to_get_value_names_from_report_file
lea ecx, [esp + 0x18]
call fcn.00402060
push ebx
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xa
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x40a09c
push 0x46aa7c
lea ecx, [esp + 0x24]
call fcn.00409001
test eax, eax
jne 0x40a46f
cmp dword [esi - 0xc], ebx
jne 0x409fea
push str.Missing_module_usage
lea ecx, [esp + 0x18]
call fcn.00402060
push ebx
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 7
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esi - 0x10]
jmp 0x409f79
call fcn.00434892
push eax
lea ecx, [esp + 0x30]
call fcn.0040210b
push 0x46ab30
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.00402060
mov byte [esp + 0x368], 0xc
mov edi, dword [esp + 0x14]
jmp 0x40a1aa
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x40a19d
push edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], ebx
call fcn.004124e0
cmp eax, ebx
jne 0x40a19d
cmp dword [esp + 0x28], ebx
je 0x40a19d
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebx
je 0x40a134
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00401eca
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00401dd1
add esp, 0xc
mov byte [esp + 0x368], 0xd
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00408f8a
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x36c], 0xe
call fcn.00401e6a
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [esp + 0x368], 0xc
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
push dword [esp + 0x28]
call fcn.004344f6
pop ecx
push ebx
push edi
call fcn.004463d3
inc eax
pop ecx
inc eax
pop ecx
mov edi, eax
cmp word [edi], bx
jne 0x40a0e6
push dword [esp + 0x14]
call fcn.004344f6
mov ebx, dword [esp + 0x30]
xor edi, edi
pop ecx
cmp dword [ebx - 0xc], edi
jne 0x40a20e
push str.no_report_data_collected
lea ecx, [esp + 0x18]
call fcn.00402060
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xf
call fcn.00411fb7
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
jmp 0x40a040
cmp dword [esp + 0x18], edi
je 0x40a361
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020a4
mov byte [esp + 0x368], 0x10
cmp dword [esi - 0xc], edi
je 0x40a274
push 0x46ab6c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00408f8a
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.00408d59
mov byte [esp + 0x368], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.0040253e
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 0x40a320
push 0x46ab70
lea ecx, [esp + 0x18]
call fcn.00402060
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.00411b31
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.0040253e
lea ecx, [esi - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x40a4ca
lea ecx, [edi - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.0040253e
lea ecx, [esi - 0x10]
call fcn.0040253e
mov esi, dword [esp + 0x28]
jmp 0x409ee5
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x40a3e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00402060
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 2
mov byte [esp + 0x378], 0x13
call fcn.00411b31
add esp, 0x10
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.0040253e
lea ecx, [esi - 0x10]
jmp 0x409f30
mov edi, 0x104
push edi
lea eax, [esp + 0x250]
push 0
push eax
call fcn.004462a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push edi
lea eax, [esp + 0x254]
push eax
lea edi, [esp + 0x40]
call fcn.0042e0eb
add esp, 0xc
test eax, eax
je 0x40a2dd
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a43c
push ebx
call eax
jmp 0x40a2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00402060
push edi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 0x14
call fcn.00411fb7
add esp, 0xc
jmp 0x40a3a6
push str.Unknown_module_type
lea ecx, [esp + 0x1c]
call fcn.00402060
push ebx
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 8
call fcn.00411fb7
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
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.0044546a
mov esp, ebp
pop ebp
ret