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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4a1d50]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
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.0040130b
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
pop ebx
push ebx
mov dword [esp + 0x374], esi
call fcn.0040fcf3
or dword [esp + 0x374], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [edi + 0x17c]
push eax
lea ecx, [esp + 0x20]
call fcn.0040134f
mov dword [esp + 0x368], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jne 0x407104
push str.Missing_module_path
lea ecx, [esp + 0x18]
call fcn.0040130b
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], bl
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov esi, 0xe8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, esi
jmp 0x4076e3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407145
push str.Missing_module_file
lea ecx, [esp + 0x18]
call fcn.0040130b
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 3
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov esi, ebx
jmp 0x4070f1
push 0x2e
lea ecx, [esp + 0x20]
call fcn.00407707
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x407192
push str.Invalid_module_path
lea ecx, [esp + 0x18]
call fcn.0040130b
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 4
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
push 0xd
pop esi
jmp 0x4070f1
add edi, 0x180
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.0040134f
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.0040774f
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.00407729
push 0x46da14
mov ecx, edi
call fcn.00406240
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x40725d
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
lea esi, [esp + 0x3c]
call fcn.0040fee5
mov eax, esi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.00410310
xor edi, edi
cmp eax, edi
je 0x4072c2
push str.unable_to_get_value_names_from_report_file
lea ecx, [esp + 0x18]
call fcn.0040130b
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xa
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x4072ae
push 0x46da1c
lea ecx, [esp + 0x24]
call fcn.00406240
test eax, eax
jne 0x407688
cmp dword [ebx - 0xc], esi
jne 0x4071f6
push str.Missing_module_usage
lea ecx, [esp + 0x18]
call fcn.0040130b
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 7
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [ebx - 0x10]
jmp 0x407185
call fcn.004366fe
push eax
lea ecx, [esp + 0x30]
call fcn.00411d53
push 0x46dad0
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.0040130b
mov byte [esp + 0x368], 0xc
mov esi, dword [esp + 0x14]
jmp 0x4073bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x4073af
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edi
call fcn.00410211
cmp eax, edi
jne 0x4073af
cmp dword [esp + 0x28], edi
je 0x4073af
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], edi
je 0x407346
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00401175
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.004061c9
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x36c], 0xe
call fcn.00401115
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [esp + 0x368], 0xc
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
push dword [esp + 0x28]
call fcn.0043633e
pop ecx
push edi
push esi
call fcn.00448112
inc eax
pop ecx
inc eax
pop ecx
mov esi, eax
cmp word [esi], di
jne 0x4072f8
push dword [esp + 0x14]
call fcn.0043633e
mov esi, dword [esp + 0x30]
pop ecx
cmp dword [esi - 0xc], edi
jne 0x40741e
push str.no_report_data_collected
lea ecx, [esp + 0x18]
call fcn.0040130b
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xf
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
jmp 0x40724e
cmp dword [esp + 0x18], edi
je 0x407571
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040134f
mov byte [esp + 0x368], 0x10
cmp dword [ebx - 0xc], edi
je 0x407484
push 0x46db0c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004061c9
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.00405f98
mov byte [esp + 0x368], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
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 0x407530
push 0x46db10
lea ecx, [esp + 0x18]
call fcn.0040130b
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.0040f821
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x4076e3
lea ecx, [edi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov esi, dword [esp + 0x28]
jmp 0x4070f1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x4075f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0040130b
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 2
mov byte [esp + 0x378], 0x13
call fcn.0040f821
add esp, 0x10
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov esi, edi
jmp 0x4070f1
push 0x104
lea eax, [esp + 0x250]
push edi
push eax
call fcn.00448000
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.0042ea6a
add esp, 0xc
test eax, eax
je 0x4074ed
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407655
push esi
call eax
jmp 0x4074ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0040130b
push edi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 0x14
call fcn.0040fcf3
add esp, 0xc
jmp 0x4075b6
push str.Unknown_module_type
lea ecx, [esp + 0x1c]
call fcn.0040130b
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 8
call fcn.0040fcf3
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
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.004472d5
mov esp, ebp
pop ebp
ret