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

Disassembly:
push 0x34c
mov eax, 0x4aaab7
call fcn.004696cc
mov edi, ecx
push str.LetProductUseArmReportData...
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor eax, eax
lea edx, [ebp - 0x32c]
push eax
push 2
pop ebx
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00414cf1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [edi + 0x1a4]
sub eax, 0x10
push eax
call fcn.00402d9f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x33c], esi
mov dword [ebp - 4], 1
cmp dword [esi - 0xc], 0
jne 0x40ae08
push str.Missing_module_path
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], bl
push ecx
lea edx, [ebp - 0x32c]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, 0xe8
jmp 0x40b407
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ae4c
push str.Missing_module_file
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 3
push ecx
lea edx, [ebp - 0x32c]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40b407
push 0x2e
push esi
call fcn.00482517
pop ecx
pop ecx
test eax, eax
je 0x40b3d1
sub eax, esi
sar eax, 1
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
je 0x40b3d1
mov eax, dword [edi + 0x1a8]
xor ecx, ecx
sub eax, 0x10
mov dword [ebp - 0x330], ecx
push eax
call fcn.00402d9f
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x340], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33c]
mov eax, dword [esi - 0xc]
sub eax, dword [ebp - 0x32c]
dec eax
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.0040b50b
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 6
call fcn.0040b55a
push 0x4ce5ec
lea ecx, [ebp - 0x34c]
call fcn.00409e7b
test eax, eax
jne 0x40af53
mov dword [ebp - 0x330], 1
xor eax, eax
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x32c], eax
call fcn.0040d74c
lea eax, [ebp - 0x32c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x328]
call fcn.0040dccd
test eax, eax
je 0x40afb6
push str.unable_to_get_value_names_from_report_file
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x32c]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [ebp - 0x334], 0xd
jmp 0x40b323
push 0x4ce5f4
lea ecx, [ebp - 0x34c]
call fcn.00409e7b
test eax, eax
jne 0x40b37c
cmp dword [edi - 0xc], eax
jne 0x40aee0
push str.Missing_module_usage
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x32c]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [ebp - 0x334], 0xd
jmp 0x40b3b9
call fcn.0044f841
push eax
lea ecx, [ebp - 0x344]
call fcn.00402899
push 0x4ce6a8
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 0xb
call fcn.00402829
mov byte [ebp - 4], 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x334], 0xd
cmp word [eax], cx
je 0x40b0f7
mov esi, eax
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x40b0d0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], edi
push eax
push esi
lea ecx, [ebp - 0x328]
call fcn.0040dbc9
test eax, eax
jne 0x40b0d0
cmp dword [ebp - 0x338], eax
je 0x40b0d0
mov eax, dword [ebp - 0x344]
cmp dword [eax - 0xc], 0
je 0x40b05c
mov eax, dword [ebp - 0x350]
lea ecx, [ebp - 0x344]
push dword [eax - 0xc]
push eax
call fcn.004025c6
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.004023f1
add esp, 0xc
mov byte [ebp - 4], 0xd
push dword [ebp - 0x338]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.00402459
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x344]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov ecx, dword [ebp - 0x354]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x348]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
push dword [ebp - 0x338]
call fcn.004690f3
pop ecx
pop ecx
push edi
push esi
call fcn.00482450
pop ecx
pop ecx
lea esi, [ebx + eax]
cmp word [esi], di
jne 0x40affe
mov esi, dword [ebp - 0x33c]
mov edi, dword [ebp - 0x340]
mov eax, dword [ebp - 0x32c]
push ebx
push eax
call fcn.004690f3
mov eax, dword [ebp - 0x344]
pop ecx
pop ecx
cmp dword [eax - 0xc], 0
jne 0x40b144
push str.no_report_data_collected
lea ecx, [ebp - 0x32c]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 0xf
push eax
lea edx, [ebp - 0x32c]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x32c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x40b307
cmp dword [ebp - 0x330], 0
je 0x40b236
add eax, 0xfffffff0
push eax
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 0x10
cmp dword [edi - 0xc], 0
je 0x40b1b5
push 0x4cc598
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.00402459
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x338]
push dword [eax]
xor eax, eax
push eax
call fcn.00409d1f
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x348]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [ebp - 0x338]
xor ecx, ecx
push ecx
push ecx
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x334], eax
cmp eax, 0x21
jge 0x40b22b
push str.ShellExecute_failed:
lea ecx, [ebp - 0x330]
call fcn.00402829
push dword [ebp - 0x334]
lea eax, [ebp - 0x33c]
mov byte [ebp - 4], 0x12
push eax
lea edx, [ebp - 0x330]
mov ecx, ebx
call fcn.004145c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x330]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x338]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x33c]
jmp 0x40b2ff
mov ecx, dword [ebp - 0x338]
jmp 0x40b137
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x348], eax
test eax, eax
jne 0x40b299
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x334], eax
call fcn.00402829
push dword [ebp - 0x334]
lea eax, [ebp - 0x33c]
mov byte [ebp - 4], 0x13
push eax
lea edx, [ebp - 0x330]
mov ecx, ebx
call fcn.004145c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x330]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x33c]
jmp 0x40b307
mov edi, 0x104
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00481b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push edi
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x340]
call fcn.00443ec6
pop ecx
pop ecx
test eax, eax
je 0x40b2f9
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40b332
push dword [ebp - 0x344]
mov ecx, edi
call dword [0x4b77e4]
call edi
mov edi, dword [ebp - 0x340]
xor eax, eax
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x350]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x344]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [ebp - method.CArmReport.virtual_0], vtable.CArmReport.0
jmp 0x40b3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x334], eax
call fcn.00402829
push dword [ebp - 0x334]
lea edx, [ebp - 0x330]
mov byte [ebp - 4], 0x14
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x330]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edi, dword [ebp - 0x340]
jmp 0x40b307
push str.Unknown_module_type
lea ecx, [ebp - 0x330]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x330]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x330]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov dword [ebp - 0x334], 0xbe
mov ecx, dword [ebp - 0x34c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [edi - 0x10]
call fcn.00402e64
jmp 0x40b40d
push str.Invalid_module_path
lea ecx, [ebp - 0x330]
call fcn.00402829
xor eax, eax
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x330]
mov ecx, ebx
call fcn.00414cf1
pop ecx
mov ecx, dword [ebp - 0x330]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0xd
pop ebx
mov dword [ebp - 0x334], ebx
lea ecx, [esi - 0x10]
call fcn.00402e64
mov eax, dword [ebp - 0x334]
call fcn.00469676
ret