Function at 0x40a560
Capabilities:
Get graphical window text
Hide graphical window
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov ebx, dword [esp + 0x184]
mov dword [esp], 0
mov esi, dword [esp + 0x180]
call sym._GetModuleHandleA_4
sub esp, 4
cmp ebx, 2
je 0x40a9e0
cmp ebx, 0x111
je 0x40a9a0
cmp ebx, 1
je 0x40a5d3
mov eax, dword [esp + 0x18c]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x188]
mov dword [esp + 8], eax
call sym._DefWindowProcW_16
sub esp, 0x10
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0x34], str.Ms_Shell_Dlg
mov dword [esp + 0x30], 0
mov edi, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x12
call sym._CreateFontA_56
sub esp, 0x38
mov dword [esp + 0x34], str.Ms_Shell_Dlg
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x320
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x1c
mov dword [esp + 0x4c], eax
call sym._CreateFontA_56
sub esp, 0x38
mov dword [esp + 0x34], str.Ms_Shell_Dlg
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff5
mov dword [esp + 0x48], eax
call sym._CreateFontA_56
sub esp, 0x38
mov ebp, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x24
mov dword [esp + 0x18], 0x144
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x12
mov dword [esp + 0xc], 0x50020001
mov dword [esp + 8], str.For_your_remote_partner_to_connect_to_this_PC__you_must_enter_their_account_number_below...
mov dword [esp + 4], str.Static
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._SendMessageA_16
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x22
mov dword [esp + 0x18], 0x13b
mov dword [esp + 0x14], 0x34
mov dword [esp + 0x10], 0x14
mov dword [esp + 0xc], 0x50812080
mov dword [esp + 8], 0x43315b
mov dword [esp + 4], str.Edit
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x445080], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._SendMessageA_16
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x18], 0x4b
mov dword [esp + 0x14], 0x63
mov dword [esp + 0x10], 0x12
mov dword [esp + 0xc], 0x50010000
mov dword [esp + 8], str.Cancel
mov dword [esp + 4], str.Button
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sym._SendMessageA_16
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x18], 0x4b
mov dword [esp + 0x14], 0x63
mov dword [esp + 0x10], 0x101
mov dword [esp + 0xc], 0x50010001
mov dword [esp + 8], 0x434e55
mov dword [esp + 4], str.Button
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sym._SendMessageA_16
mov eax, esi
sub esp, 0x10
call dbg.centreWindow
lea eax, [esp + 0x5c]
call dbg.accountNumberDetectedInExeName
test eax, eax
jne 0x40aa10
mov eax, dword [0x445080]
mov dword [esp], eax
call sym._SetFocus_4
mov eax, dword [0x445080]
sub esp, 4
mov dword [esp + 8], dbg.EditProc
mov dword [esp + 4], 0xfffffffc
mov dword [esp], eax
call sym._SetWindowLongA_12
sub esp, 0xc
mov dword [0x445328], eax
jmp 0x40a5a1
mov eax, dword [esp + 0x188]
shr eax, 0x10
test eax, eax
jne 0x40a5a1
cmp dword [esp + 0x188], 1
je 0x40aa45
cmp word [esp + 0x188], 2
jne 0x40a5a1
mov dword [esp], esi
call sym._DestroyWindow_4
sub esp, 4
jmp 0x40a5a1
mov eax, dword [0x446d78]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp 0x40a5a1
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [0x445080]
mov dword [esp], eax
call sym._SetWindowTextA_8
mov eax, dword [0x445080]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._EnableWindow_8
sub esp, 8
jmp 0x40a961
lea edi, [esp + 0x5c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [0x445080]
lea edi, [esp + 0x5c]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._GetWindowTextA_12
mov eax, edi
sub esp, 0xc
call dbg.saveContractIdInRegistry
test eax, eax
je 0x40a5a1
call dbg.remotelyServiceIsRunning
test eax, eax
je 0x40aab0
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._ShowWindow_8
sub esp, 8
call dbg.setContractIdAndBeginInteractiveSession
mov dword [esp], esi
call sym._DestroyWindow_4
sub esp, 4
jmp 0x40a5a1
call dbg.launchBackgroundProcessFromGui
jmp 0x40aa88