Function at 0x1003fa1
Capabilities:
Get graphical window text
Print debug messages
Shutdown system
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18ac
call fcn.01005cf0
mov eax, dword [0x100703c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov eax, 0x3f2
cmp ecx, eax
push esi
push edi
mov dword [ebp - 0x860], edx
mov dword [ebp - 0x850], ebx
jg 0x10046ad
je 0x1004464
mov eax, ecx
dec eax
je 0x10041da
dec eax
je 0x10041be
sub eax, 7
je 0x100419d
sub eax, 0x3df
je 0x10040c7
dec eax
je 0x10040a3
dec eax
dec eax
je 0x100407f
dec eax
jne 0x10048ff
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x18ac]
push eax
push 0x400
push 0x191
push dword [0x1007064]
call edi
cmp eax, ebx
jle 0x10041cb
lea esi, [eax - 1]
cmp esi, ebx
jl 0x1004069
push ebx
push dword [ebp + esi*4 - 0x18ac]
push 0x182
push dword [0x1007064]
call edi
dec esi
jns 0x1004051
call fcn.01002a08
push dword [0x1007064]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x10041cb
xor esi, esi
inc esi
cmp dword [ebp + 0x14], esi
jne 0x1004091
call fcn.01002a08
jmp 0x10048f9
cmp dword [ebp + 0x14], 0x200
jne 0x10048ff
jmp 0x10048f9
xor esi, esi
inc esi
cmp dword [ebp + 0x14], esi
jne 0x10048ff
push dword [0x100706c]
mov ecx, 0x1007ba8
push dword [0x100707c]
call fcn.01001a40
jmp 0x1004087
cmp dword [ebp + 0x14], 1
jne 0x10048ff
mov eax, dword [0x100709c]
push 0x3fc
push edx
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x85c], ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x10040fd
mov dword [ebp - 0x85c], 0x80000000
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1007078]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
mov dword [ebp - 0x860], 0x10070e0
mov esi, 0x208
push dword [ebp - 0x860]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1004150
add dword [ebp - 0x860], esi
add ebx, esi
inc edi
cmp ebx, 0x618
jb 0x1004126
jmp 0x10041cb
xor eax, eax
cmp edi, 2
sete al
mov dword [0x100709c], edi
mov dword [0x1007b94], eax
cmp dword [ebp - 0x854], edi
je 0x100471a
cmp dword [ebp - 0x854], 2
je 0x1004181
cmp edi, 2
jne 0x100471a
push dword [0x100706c]
xor ecx, ecx
cmp dword [ebp - 0x85c], 0x80000000
sete cl
push ecx
push eax
jmp 0x100470a
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
push ebx
push ebx
push 0x10014d0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0100597c
jmp 0x10048ff
cmp dword [ebp + 0x14], ebx
jne 0x10041cb
push ebx
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebp - 0x850], 1
jmp 0x10048ff
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
xor eax, eax
push 0x3fe
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x816]
push ebx
push eax
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x868], ebx
mov dword [ebp - 0x858], ebx
mov dword [ebp - 0x85c], ebx
call sub.msvcrt.dll_memset
mov esi, dword [0x100709c]
add esp, 0xc
push 0x3f3
push dword [ebp - 0x860]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x100429f
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1007070]
mov dword [ebp - 0x854], ebx
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1004276
mov dword [ebp - 0x858], ebx
jmp 0x10042a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
mov dword [ebp - 0x858], eax
mov eax, 0x12cc0300
pop ecx
cmp dword [ebp - 0x858], eax
jbe 0x10042a9
mov dword [ebp - 0x858], eax
jmp 0x10042a9
mov dword [ebp - 0x854], 1
push 0x104
lea eax, [ebp - 0x418]
push eax
push 9
push dword [0x1007b9c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x200
lea eax, [ebp - 0x818]
push eax
push dword [0x1007068]
call edi
xor eax, eax
mov word [ebp - 0x41a], ax
cmp esi, 3
je 0x100432d
inc eax
cmp esi, eax
jne 0x1004320
mov dword [ebp - 0x86c], eax
mov eax, dword [0x1007014]
cmp eax, 0xffffffff
jne 0x1004301
xor eax, eax
mov dword [0x1007014], eax
cmp dword [0x1007b90], ebx
jne 0x100436c
mov ecx, dword [0x1007ba0]
imul eax, eax, 0x284
mov eax, dword [eax + ecx]
mov dword [ebp - 0x85c], eax
jmp 0x1004378
cmp esi, 2
jne 0x10042f0
mov dword [ebp - 0x868], eax
jmp 0x10042f0
mov eax, dword [ebp - 0x854]
neg eax
sbb eax, eax
and eax, 0xfffffffc
push ebx
add eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x100435a
push 0x1007988
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010026f3
push ebx
push dword [ebp - 0x860]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x10048ff
cmp dword [ebp - 0x868], ebx
jne 0x10048ff
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x18b
push dword [0x1007064]
call esi
mov dword [ebp - 0x864], eax
cmp eax, ebx
jbe 0x10048ff
xor edi, edi
cmp eax, ebx
jbe 0x100435a
push ebx
push edi
push 0x18a
push dword [0x1007064]
xor eax, eax
mov word [ebp - 0x20c], ax
call esi
cmp eax, 0x104
jae 0x10043d5
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x189
push dword [0x1007064]
call esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100215c
cmp dword [ebp - 0x868], ebx
je 0x100440f
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x818]
push eax
push ebx
push ebx
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01002f44
jmp 0x1004452
push dword [ebp - 0x85c]
lea eax, [ebp - 0x818]
push dword [ebp - 0x86c]
push dword [ebp - 0x854]
push dword [ebp - 0x858]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x1004452
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010026f3
inc edi
cmp edi, dword [ebp - 0x864]
jb 0x10043a1
jmp 0x100435a
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
push 0x30
lea eax, [ebp - 0x848]
push ebx
push eax
mov dword [ebp - 0x84c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x8ac], ebx
lea edi, [ebp - 0x8a8]
push 0x10014b4
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
or dword [ebp - 0x880], 0xffffffff
xor esi, esi
inc esi
push ebx
mov word [ebp - 0x88c], ax
mov dword [ebp - 0x888], ebx
mov dword [ebp - 0x884], esi
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x878], ebx
mov dword [ebp - 0x874], ebx
mov dword [ebp - 0x870], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x858]
push eax
push 0x100124c
push esi
push ebx
push 0x100123c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x1004512
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100148c
call sub.ntdll.dll_DbgPrint
pop ecx
jmp 0x10048ff
mov dword [ebp - 0x84c], 0x34
mov dword [ebp - 0x848], 0x423
mov esi, 0x100125c
lea edi, [ebp - 0x844]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x8ac]
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x858]
mov esi, 0x100126c
lea edi, [ebp - 0x830]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x864]
push edx
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x84c]
push edx
push dword [ebp - 0x860]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x8ac], 0x1c
mov dword [ebp - 0x8a8], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x100459f
mov eax, dword [ebp - 0x858]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x10048ff
mov eax, dword [ebp - 0x864]
cmp eax, ebx
je 0x1004588
mov ecx, dword [eax]
lea edx, [ebp - 0x878]
push edx
lea edx, [ebp - 0x88c]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x1004680
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x1004666
mov dword [ebp - 0x85c], ebx
cmp dword [esi + 0x10], ebx
jbe 0x1004658
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x854]
mov eax, dword [eax]
add eax, esi
push eax
call fcn.010021f1
test eax, eax
je 0x1004640
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push 0x1a2
push dword [0x1007064]
call edi
cmp eax, 0xffffffff
jne 0x1004640
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x180
push dword [0x1007064]
call edi
inc dword [ebp - 0x85c]
mov eax, dword [ebp - 0x85c]
add dword [ebp - 0x854], 0x10
cmp eax, dword [esi + 0x10]
jb 0x10045f5
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1004671
push 0x100146c
call sub.ntdll.dll_DbgPrint
pop ecx
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
jmp 0x100468d
push eax
push 0x1001450
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov eax, dword [ebp - 0x864]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x858]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100471a
mov eax, 0x3f3
sub ecx, eax
je 0x10048d5
dec ecx
je 0x10048c7
dec ecx
dec ecx
je 0x100485d
dec ecx
je 0x1004724
sub ecx, 5
je 0x10046e2
sub ecx, 0xec64
jne 0x10048ff
jmp 0x10041c3
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
push dword [0x100706c]
push 0x3fc
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1007b94]
push dword [0x100707c]
mov ecx, 0x1007ba8
call fcn.0100192c
call fcn.01002a08
jmp 0x10041cb
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
push ebx
push 0x1002f03
push edx
push 0x66
push dword [0x1007b9c]
xor edi, edi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [0x100777c]
cmp esi, ebx
je 0x10041cb
jmp 0x100480b
xor eax, eax
mov word [ebp - 0x418], ax
jmp 0x1004791
cmp ax, 9
je 0x1004799
cmp ax, 0xa
je 0x1004799
cmp ax, 0xd
je 0x1004799
cmp ax, 0x20
je 0x1004799
cmp edi, 0x104
jae 0x1004830
mov word [ebp + edi*2 - 0x418], ax
inc edi
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x1004762
xor eax, eax
mov word [ebp + edi*2 - 0x418], ax
cmp edi, ebx
jbe 0x10047df
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push 0x1a2
push dword [0x1007064]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10047df
lea eax, [ebp - 0x418]
push eax
push ebx
push 0x180
push dword [0x1007064]
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, word [esi]
xor edi, edi
cmp ax, bx
je 0x1004814
cmp ax, 9
je 0x1004801
cmp ax, 0xa
je 0x1004801
cmp ax, 0xd
je 0x1004801
cmp ax, 0x20
jne 0x100480b
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
jne 0x10047e9
cmp word [esi], bx
jne 0x1004757
call fcn.01002a08
push dword [0x100777c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100777c], ebx
jmp 0x10041cb
push 0xb
call fcn.010023e7
push dword [0x100777c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push ebx
push esi
push ebx
mov dword [0x100777c], ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
cmp dword [ebp + 0x14], 0x300
jne 0x10048ff
xor esi, esi
inc esi
cmp dword [0x1007b90], ebx
je 0x1004878
push esi
jmp 0x10048bf
mov eax, dword [0x1007014]
cmp eax, 0xffffffff
je 0x10048a7
mov ecx, dword [0x1007ba0]
imul eax, eax, 0x284
test dword [eax + ecx], 0x1000000
je 0x10048a7
push dword [0x1007068]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10048be
push ebx
push ebx
push 0x18b
push dword [0x1007064]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jg 0x1004875
push ebx
push dword [0x1007090]
jmp 0x10048f3
cmp dword [ebp + 0x14], 0x200
jne 0x10048ff
jmp 0x10041cb
cmp dword [ebp + 0x14], ebx
jne 0x10048ff
push eax
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor esi, esi
inc esi
cmp eax, esi
jne 0x10048ec
push esi
jmp 0x10048ed
push ebx
push dword [0x1007070]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x850], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x850]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005cd9
leave
ret 0x10