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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4663e8
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4add60]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
push edi
mov eax, dword [0x4add60]
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.004012e2
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
pop ebx
push ebx
mov dword [esp + 0x374], esi
call fcn.00410d56
or dword [esp + 0x374], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
lea eax, [edi + 0x17c]
push eax
lea ecx, [esp + 0x20]
call fcn.00401326
mov dword [esp + 0x368], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], esi
jne 0x407905
push str.Missing_module_path
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], bl
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov esi, 0xe8
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, esi
jmp 0x407ee4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407946
push str.Missing_module_file
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 3
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov esi, ebx
jmp 0x4078f2
push 0x2e
lea ecx, [esp + 0x20]
call fcn.00407f08
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x407993
push str.Invalid_module_path
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov byte [esp + 0x374], 4
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push 0xd
pop esi
jmp 0x4078f2
add edi, 0x180
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], esi
call fcn.00401326
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.00407f50
lea edi, [esp + 0x20]
mov byte [esp + 0x368], 6
call fcn.00407f2a
push 0x4750bc
mov ecx, edi
call fcn.00406a03
mov ebx, dword [esp + 0x34]
test eax, eax
jne 0x407a5e
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
lea esi, [esp + 0x3c]
call fcn.00411c4a
mov eax, esi
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x36c], 9
call fcn.00412075
xor edi, edi
cmp eax, edi
je 0x407ac3
push str.unable_to_get_value_names_from_report_file
lea ecx, [esp + 0x18]
call fcn.004012e2
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xa
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov dword [esp + 0x3c], vtable.CArmReport.0
jmp 0x407aaf
push 0x4750c4
lea ecx, [esp + 0x24]
call fcn.00406a03
test eax, eax
jne 0x407e89
cmp dword [ebx - 0xc], esi
jne 0x4079f7
push str.Missing_module_usage
lea ecx, [esp + 0x18]
call fcn.004012e2
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 7
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [ebx - 0x10]
jmp 0x407986
call fcn.0043ce9a
push eax
lea ecx, [esp + 0x30]
call fcn.00413a25
push 0x475178
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 0xb
call fcn.004012e2
mov byte [esp + 0x368], 0xc
mov esi, dword [esp + 0x14]
jmp 0x407bbd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x40
jg 0x407bb0
push esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edi
call fcn.00411f76
cmp eax, edi
jne 0x407bb0
cmp dword [esp + 0x28], edi
je 0x407bb0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], edi
je 0x407b47
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00401163
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.00406977
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x36c], 0xe
call fcn.00401103
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [esp + 0x368], 0xc
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017ba
push dword [esp + 0x28]
call fcn.0043cada
pop ecx
push edi
push esi
call fcn.0044e852
inc eax
pop ecx
inc eax
pop ecx
mov esi, eax
cmp word [esi], di
jne 0x407af9
push dword [esp + 0x14]
call fcn.0043cada
mov esi, dword [esp + 0x30]
pop ecx
cmp dword [esi - 0xc], edi
jne 0x407c1f
push str.no_report_data_collected
lea ecx, [esp + 0x18]
call fcn.004012e2
push edi
lea eax, [esp + 0x18]
push eax
push 2
mov byte [esp + 0x374], 0xf
call fcn.00410d56
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [esi - 0x10]
jmp 0x407a4f
cmp dword [esp + 0x18], edi
je 0x407d72
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401326
mov byte [esp + 0x368], 0x10
cmp dword [ebx - 0xc], edi
je 0x407c85
push 0x4751b4
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00406977
add esp, 0xc
mov byte [esp + 0x368], 0x11
push dword [eax]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.00406746
mov byte [esp + 0x368], 0x10
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017ba
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 0x407d31
push 0x4751b8
lea ecx, [esp + 0x18]
call fcn.004012e2
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.00410886
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [edi - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [esi - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
jmp 0x407ee4
lea ecx, [edi - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [esi - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
mov esi, dword [esp + 0x28]
jmp 0x4078f2
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x30], eax
cmp eax, edi
jne 0x407dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.LoadLibrary_failed:
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004012e2
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 2
mov byte [esp + 0x378], 0x13
call fcn.00410886
add esp, 0x10
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017ba
lea ecx, [esi - 0x10]
call fcn.004017ba
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov dword [esp + 0x3c], vtable.CArmReport.0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
mov esi, edi
jmp 0x4078f2
push 0x104
lea eax, [esp + 0x250]
push edi
push eax
call fcn.0044e740
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.00432534
add esp, 0xc
test eax, eax
je 0x407cee
lea eax, [esp + 0x24c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407e56
push esi
call eax
jmp 0x407cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_find
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004012e2
push edi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 0x14
call fcn.00410d56
add esp, 0xc
jmp 0x407db7
push str.Unknown_module_type
lea ecx, [esp + 0x1c]
call fcn.004012e2
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov byte [esp + 0x374], 8
call fcn.00410d56
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017ba
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.0044da13
mov esp, ebp
pop ebp
ret