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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4734a3
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4bfd60]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x4bfd60]
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.004020a6
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
pop ebx
push ebx
mov dword [esp + 0x374], esi
call fcn.004152d1
or dword [esp + 0x374], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [edi + 0x17c]
push eax
lea ecx, [esp + 0x20]
call fcn.004020ea
mov dword [esp + 0x368], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jne 0x40bd2d
push str.Missing_module_path
lea ecx, [esp + 0x18]
call fcn.004020a6
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], bl
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, 0xe8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, esi
jmp 0x40c30c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bd6e
push str.Missing_module_file
lea ecx, [esp + 0x18]
call fcn.004020a6
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 3
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, ebx
jmp 0x40bd1a
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0040c420
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x40bdbb
push str.Invalid_module_path
lea ecx, [esp + 0x18]
call fcn.004020a6
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 4
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push 0xd
pop esi
jmp 0x40bd1a
add edi, 0x180
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.004020ea
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.0040c468
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.0040c442
push 0x483b84
mov ecx, edi
call fcn.0040ae5c
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x40be86
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
lea esi, [esp + 0x3c]
call fcn.004163f4
mov eax, esi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.00416969
xor edi, edi
cmp eax, edi
je 0x40beeb
push str.unable_to_get_value_names_from_report_file
lea ecx, [esp + 0x18]
call fcn.004020a6
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xa
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x40bed7
push 0x483b8c
lea ecx, [esp + 0x24]
call fcn.0040ae5c
test eax, eax
jne 0x40c2b1
cmp dword [ebx - 0xc], esi
jne 0x40be1f
push str.Missing_module_usage
lea ecx, [esp + 0x18]
call fcn.004020a6
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 7
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebx - 0x10]
jmp 0x40bdae
call fcn.0044825c
push eax
lea ecx, [esp + 0x30]
call fcn.0041872d
push 0x483c40
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.004020a6
mov byte [esp + 0x368], 0xc
mov esi, dword [esp + 0x14]
jmp 0x40bfe5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x40bfd8
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edi
call fcn.0041686a
cmp eax, edi
jne 0x40bfd8
cmp dword [esp + 0x28], edi
je 0x40bfd8
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], edi
je 0x40bf6f
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00401f27
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00401e40
add esp, 0xc
mov byte [esp + 0x368], 0xd
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040adb6
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x36c], 0xe
call fcn.00401ec7
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.004025d2
mov byte [esp + 0x368], 0xc
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
push dword [esp + 0x28]
call fcn.00447e9c
pop ecx
push edi
push esi
call fcn.00459e02
inc eax
pop ecx
inc eax
pop ecx
mov esi, eax
cmp word [esi], di
jne 0x40bf21
push dword [esp + 0x14]
call fcn.00447e9c
mov esi, dword [esp + 0x30]
pop ecx
cmp dword [esi - 0xc], edi
jne 0x40c047
push str.no_report_data_collected
lea ecx, [esp + 0x18]
call fcn.004020a6
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xf
call fcn.004152d1
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
jmp 0x40be77
cmp dword [esp + 0x18], edi
je 0x40c19a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004020ea
mov byte [esp + 0x368], 0x10
cmp dword [ebx - 0xc], edi
je 0x40c0ad
push 0x483c7c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040adb6
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0040ab24
mov byte [esp + 0x368], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
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 0x40c159
push 0x483c80
lea ecx, [esp + 0x18]
call fcn.004020a6
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.00414e01
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x40c30c
lea ecx, [edi - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov esi, dword [esp + 0x28]
jmp 0x40bd1a
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x40c222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004020a6
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 2
mov byte [esp + 0x378], 0x13
call fcn.00414e01
add esp, 0x10
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004025d2
lea ecx, [ebx - 0x10]
call fcn.004025d2
mov esi, edi
jmp 0x40bd1a
push 0x104
lea eax, [esp + 0x250]
push edi
push eax
call fcn.00459cf0
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.0043d017
add esp, 0xc
test eax, eax
je 0x40c116
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c27e
push esi
call eax
jmp 0x40c116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004020a6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 0x14
call fcn.004152d1
add esp, 0xc
jmp 0x40c1df
push str.Unknown_module_type
lea ecx, [esp + 0x1c]
call fcn.004020a6
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 8
call fcn.004152d1
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
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.00458e0e
mov esp, ebp
pop ebp
ret