Function at 0x401474
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
jmp 0x402390
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453287
push eax
mov eax, dword [0x46bb54]
mov dword fs:[0], esp
sub esp, 0x148
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x40273f
call fcn.004011e0
test eax, eax
jne 0x40273f
lea ecx, [esp + 0x30]
call fcn.004473e0
push str.AutoH2AutoH2UFD.exe
lea eax, [esp + 0x1c]
push 0x46b740
push eax
mov dword [esp + 0x16c], ebx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 1
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x4024d1
push str.AutoH2AutoH2.ini
lea ecx, [esp + 0x18]
push 0x46b740
push ecx
call sub.MFC42.DLL_operator_2
mov esi, dword [eax]
push str.AutoH2H2testw.exe
lea edx, [esp + 0x1c]
push 0x46b740
push edx
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push esi
push eax
push str.H2Path
push str.AutoH2UFD
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push str.AutoH2AutoH2UFD.exe
lea eax, [esp + 0x18]
push 0x46b740
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
push 0x32
call esi
push str.AutoH2UFD
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x46b320], eax
jmp 0x40272b
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push str.AutoH2
push str.AMSZAUTOH2TOOL
call esi
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push eax
mov dword [0x46b320], eax
call ebp
test eax, eax
jne 0x4025c1
mov ecx, 0x11
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
xor ecx, ecx
push str.AutoH2AutoH2.exe
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x28], ecx
push 0x46b740
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x38], ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x402691
push str.AutoH2AutoH2.exe
lea eax, [esp + 0x18]
push 0x46b740
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x20]
mov eax, dword [eax]
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.AutoH2
push str.AMSZAUTOH2TOOL
call esi
mov dword [0x46b320], eax
mov ecx, dword [0x46b320]
push ecx
call ebp
test eax, eax
je 0x40271f
mov edx, dword [0x46b320]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x45b
push edx
call ebp
mov eax, dword [0x46b320]
push 0x45a
push eax
call ebp
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
xor esi, esi
mov edx, dword [0x46b320]
lea ecx, [esi + 0x410]
push ecx
push edx
call ebp
mov edx, eax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x90]
push eax
push 0xc8
push 0xd
push edx
call edi
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
push str.Find_Device...
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 4
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x40269a
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, 0x40
jb 0x402601
mov esi, dword [esp + 0x14]
jmp 0x4026af
push ebx
push ebx
push str.Can_not_find_AutoH2__r_n
jmp 0x402702
lea ecx, [esp + 0x18]
mov esi, 1
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4026cd
cmp esi, ebx
je 0x4026e1
mov al, byte [esp + 0x13]
inc al
cmp al, 0x1e
mov byte [esp + 0x13], al
jb 0x4025fb
jmp 0x4026f4
mov eax, dword [0x46b320]
push ebx
push 0x45a
push 0x111
push eax
call edi
cmp byte [esp + 0x13], 0x1e
jne 0x40272b
push ebx
push ebx
push str.Not_Found_Auto_H2Test_Tool_R_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x402744
push ebx
push ebx
push str.Can_not_Open_AutoH2__r_n
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x30]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 1
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret