Function at 0x417440
Capabilities:
Check if file exists
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425b28
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0x7e8
push dword [0x435e4c]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x200
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
dec edi
cmp edi, 6
ja case.0x4174a7.4
jmp dword [edi*4 + 0x41784c]
lea eax, [esi + 0xd8]
push eax
push str._sUnisoc_MES_Login.exe
lea eax, [ebp - 0x21c]
push 0x200
push eax
call fcn.00407790
add esp, 0x10
jmp 0x417712
lea eax, [esi + 0xd8]
push eax
push str._sUnisoc_MES_Regist_Station.exe
jmp 0x4174ba
lea eax, [esi + 0xd8]
push eax
push str._sUnisoc_MES_Debug.exe
jmp 0x4174ba
lea eax, [esi + 0xd8]
push eax
push str._sLogMES
jmp 0x4174ba
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
push 0x3c
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x451]
call fcn.0040bc40
push 0xa
push 0x429d0c
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
call fcn.004093b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x450], esp
push 0xc
push 0x429d2c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004093b0
push 0x200
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040f400
push eax
mov byte [ebp - 4], 2
call fcn.0040af30
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x438]
cmp edx, 0x10
jb 0x417633
mov ecx, dword [ebp - 0x44c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417629
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417629
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
push dword [eax + 4]
lea eax, [ebp - 0x424]
push eax
mov ecx, eax
call fcn.0040fd10
push 0x3c
push dword [ebp - 0x424]
call fcn.0042313b
add esp, 8
lea ecx, [ebp - 0x430]
call fcn.0040f850
jmp 0x417712
push 0x200
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0xd8]
push eax
push str._sUnisoc_MES_Manage.ini
lea eax, [ebp - 0x41c]
push 0x200
push eax
call fcn.00407790
add esp, 0x1c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4176c9
push eax
push eax
push str.Unisoc_MES_Manage.ini_does_not_exist.
call dword [sym.imp.mfc140u.dll_AfxMessageBox]
xor al, al
jmp 0x41782d
push edi
push str.Path_d
lea eax, [ebp - 0x1c]
mov word [ebp - 0x14], 0
xorps xmm0, xmm0
push 0xa
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00407790
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 0x200
lea eax, [ebp - 0x21c]
push eax
push 0x427ce0
lea eax, [ebp - 0x1c]
push eax
push str.Shortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417811
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x434], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417746
sub ecx, edx
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.004093b0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x420], 0x10
lea ecx, [ebp - 0x450]
cmovae eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push dword [ebp - 0x450]
lea eax, [ebp - 0x450]
push str._s_does_not_exist.
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
add esp, 0xc
push 0
push 0
push dword [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_AfxMessageBox]
lea ecx, [ebp - 0x450]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edx, dword [ebp - 0x420]
cmp edx, 0x10
jb 0x41780d
mov ecx, dword [ebp - 0x434]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x417803
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042313b
add esp, 8
xor al, al
jmp 0x41782d
push 1
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422eb6
mov esp, ebp
pop ebp
ret 4