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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d20c
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x497d50]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x497d50]
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.00411fad
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 0x409eee
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.00411fad
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 0x40a4c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409f2f
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.00411fad
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, edi
jmp 0x409edb
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0040a4e4
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x409f7c
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.00411fad
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 0xd
pop esi
jmp 0x409edb
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.0040a52c
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.0040a506
push 0x469a74
mov ecx, edi
call fcn.00408ff7
mov esi, dword [esp + 0x34]
test eax, eax
jne 0x40a045
mov dword [esp + 0x18], 1
lea edi, [esp + 0x3c]
mov dword [esp + 0x14], ebx
call fcn.0041219f
mov eax, edi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.004125d5
cmp eax, ebx
je 0x40a0a6
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.00411fad
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x40a092
push 0x469a7c
lea ecx, [esp + 0x24]
call fcn.00408ff7
test eax, eax
jne 0x40a465
cmp dword [esi - 0xc], ebx
jne 0x409fe0
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.00411fad
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 0x409f6f
call fcn.00434582
push eax
lea ecx, [esp + 0x30]
call fcn.0040210b
push 0x469b30
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.00402060
mov byte [esp + 0x368], 0xc
mov edi, dword [esp + 0x14]
jmp 0x40a1a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x40a193
push edi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], ebx
call fcn.004124d6
cmp eax, ebx
jne 0x40a193
cmp dword [esp + 0x28], ebx
je 0x40a193
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], ebx
je 0x40a12a
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.00408f80
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.004341db
pop ecx
push ebx
push edi
call fcn.004460c3
inc eax
pop ecx
inc eax
pop ecx
mov edi, eax
cmp word [edi], bx
jne 0x40a0dc
push dword [esp + 0x14]
call fcn.004341db
mov ebx, dword [esp + 0x30]
xor edi, edi
pop ecx
cmp dword [ebx - 0xc], edi
jne 0x40a204
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.00411fad
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 0x40a036
cmp dword [esp + 0x18], edi
je 0x40a357
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020a4
mov byte [esp + 0x368], 0x10
cmp dword [esi - 0xc], edi
je 0x40a26a
push 0x469b6c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00408f80
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.00408d4f
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 0x40a316
push 0x469b70
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.00411b27
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 0x40a4c0
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 0x409edb
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x40a3d8
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.00411b27
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 0x409f26
mov edi, 0x104
push edi
lea eax, [esp + 0x250]
push 0
push eax
call fcn.00445f90
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.0042de82
add esp, 0xc
test eax, eax
je 0x40a2d3
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a432
push ebx
call eax
jmp 0x40a2d3
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.00411fad
add esp, 0xc
jmp 0x40a39c
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.00411fad
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.00445157
mov esp, ebp
pop ebp
ret