Function at 0x10027ab
Capabilities:
Get graphical window text
Print debug messages
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2f50
call sub.ntdll.dll__chkstk
mov eax, dword [0x1004048]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, 0x3f2
cmp edx, eax
push esi
push edi
mov dword [ebp - 0x2efc], ecx
mov dword [ebp - 0x2f00], ebx
jg 0x1002eeb
je 0x1002c6c
dec edx
je 0x100297f
dec edx
je 0x1002970
sub edx, 0x3e6
je 0x10028f9
dec edx
je 0x100286a
sub edx, 3
jne 0x10031a3
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x1ec0]
push eax
push 0x400
push 0x191
push dword [0x1004054]
call edi
cmp eax, ebx
jle 0x1002961
lea esi, [eax - 1]
cmp esi, ebx
jl 0x1002961
push ebx
push dword [ebp + esi*4 - 0x1ec0]
push 0x182
push dword [0x1004054]
call edi
dec esi
jns 0x100284d
jmp 0x1002961
xor edi, edi
inc edi
cmp dword [ebp + 0x14], edi
jne 0x10031a3
push 0x40
lea eax, [ebp - 0x290]
push eax
push dword [0x100406c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
cmp dword [0x1004b08], ebx
jbe 0x10028ee
mov eax, dword [0x1004b04]
lea eax, [ebx + eax + 4]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [0x1001068]
test eax, eax
je 0x10028c1
inc esi
add ebx, 0x288
cmp esi, dword [0x1004b08]
jb 0x1002895
jmp 0x10028ee
mov ecx, dword [0x1004b04]
mov eax, esi
imul eax, eax, 0x288
lea eax, [eax + ecx + 0x86]
push eax
push dword [0x100405c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [0x1004084], esi
call fcn.01001f16
mov dword [ebp - 0x2f00], edi
jmp 0x10031a3
cmp dword [ebp + 0x14], 1
jne 0x10031a3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1004068]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x2ef8], ebx
mov edi, 0x10040d0
mov esi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [0x1001068]
test eax, eax
je 0x1002951
inc dword [ebp - 0x2ef8]
add ebx, esi
add edi, esi
cmp ebx, 0x618
jb 0x100292b
jmp 0x1002961
mov eax, dword [ebp - 0x2ef8]
mov dword [0x1004088], eax
call fcn.01001f16
mov dword [ebp - 0x2f00], 1
jmp 0x10031a3
cmp dword [ebp + 0x14], ebx
jne 0x1002961
push ebx
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x1002961
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
xor eax, eax
mov word [ebp - 0x2ec0], bx
mov ecx, 0x7ff
lea edi, [ebp - 0x2ebe]
rep stosd dword es:[edi], eax
push 0x3f3
push dword [ebp - 0x2efc]
stosw word es:[edi], ax
mov eax, dword [0x1004088]
mov dword [ebp - 0x2f04], ebx
mov dword [ebp - 0x2f0c], ebx
mov dword [ebp - 0x2f10], ebx
mov dword [ebp - 0x2ef8], eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
mov esi, 0x104
je 0x1002a27
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [0x1004060]
mov dword [ebp - 0x2f08], ebx
mov word [ebp - 0x20c], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
push eax
call dword [0x100107c]
test eax, eax
jne 0x1002a11
mov dword [ebp - 0x2f0c], ebx
jmp 0x1002a31
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ntdll.dll__wtoi]
pop ecx
mov dword [ebp - 0x2f0c], eax
jmp 0x1002a31
mov dword [ebp - 0x2f08], 1
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x8a8]
push eax
push 8
push dword [0x1004b0c]
call edi
push esi
lea eax, [ebp - 0xec0]
push eax
push 9
push dword [0x1004b0c]
call edi
push esi
lea eax, [ebp - 0xcb8]
push eax
push 0x11
push dword [0x1004b0c]
call edi
push esi
lea eax, [ebp - 0xab0]
push eax
push 0x10
push dword [0x1004b0c]
call edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2ec0]
push eax
push dword [0x1004058]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x2ef8], 2
je 0x1002b54
xor eax, eax
inc eax
cmp dword [ebp - 0x2ef8], eax
jne 0x1002ab6
mov dword [ebp - 0x2f04], eax
cmp dword [0x1004b00], ebx
jne 0x1002ad8
mov eax, dword [0x1004084]
mov ecx, dword [0x1004b04]
imul eax, eax, 0x288
mov eax, dword [eax + ecx]
mov dword [ebp - 0x2f10], eax
push ebx
push ebx
push 0x18b
push dword [0x1004054]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [ebp - 0x2f20], eax
jbe 0x1002c3c
mov edi, dword [sym.imp.ntdll.dll_wcscpy]
mov esi, dword [sym.imp.ntdll.dll_wcscat]
mov dword [ebp - 0x2ef8], ebx
mov ebx, 0x1001360
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2ef8]
push 0x189
push dword [0x1004054]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.01001adb
test eax, eax
jne 0x1002b85
call dword [fcn.01001094]
push eax
call fcn.01001604
lea eax, [ebp - 0x8a8]
jmp 0x1002bcf
mov eax, dword [ebp - 0x2f08]
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 0x1002c2a
call dword [fcn.01001094]
push eax
call fcn.01001604
jmp 0x1002c2a
push dword [ebp - 0x2f10]
lea eax, [ebp - 0x2ec0]
push dword [ebp - 0x2f04]
push dword [ebp - 0x2f08]
push dword [ebp - 0x2f0c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [entry0]
test eax, eax
jne 0x1002bc9
call dword [fcn.01001094]
push eax
call fcn.01001604
lea eax, [ebp - 0xcb8]
jmp 0x1002bcf
lea eax, [ebp - 0xab0]
push eax
lea eax, [ebp - 0x6a0]
push eax
call edi
lea eax, [ebp - 0x6a0]
push 0x1001358
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6a0]
push eax
call esi
lea eax, [ebp - 0x6a0]
push ebx
push eax
call esi
lea eax, [ebp - 0x6a0]
add esp, 0x20
push eax
call fcn.010014c5
inc dword [ebp - 0x2ef8]
mov eax, dword [ebp - 0x2ef8]
cmp eax, dword [ebp - 0x2f20]
jb 0x1002b10
xor ebx, ebx
push ebx
push dword [ebp - 0x2efc]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x10031a3
push esi
lea eax, [ebp - 0x2ec0]
push eax
push 0x12
push dword [0x1004b0c]
call edi
push ebx
push 0x1004090
lea eax, [ebp - 0x2ec0]
push eax
push dword [ebp - 0x2efc]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10031a3
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
push 0xc
pop ecx
xor eax, eax
push 6
mov dword [ebp - 0x2ef4], ebx
lea edi, [ebp - 0x2ef0]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x2f50], ebx
lea edi, [ebp - 0x2f4c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 0x100133c
call edi
or dword [ebp - 0x2f28], 0xffffffff
xor esi, esi
inc esi
push 0x1001318
mov word [ebp - 0x2f34], ax
mov dword [ebp - 0x2f30], ebx
mov dword [ebp - 0x2f2c], esi
mov dword [ebp - 0x2f24], esi
call edi
push ebx
mov dword [ebp - 0x2f1c], ebx
mov dword [ebp - 0x2f18], ebx
mov dword [ebp - 0x2f14], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x2ef8]
push eax
push 0x10011ac
push esi
push ebx
push 0x10011bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x1002d1c
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x10012e0
call sub.ntdll.dll_DbgPrint
pop ecx
jmp 0x1002da4
mov dword [ebp - 0x2ef4], 0x34
mov dword [ebp - 0x2ef0], 0x423
mov esi, 0x100119c
lea edi, [ebp - 0x2eec]
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 - 0x2f50]
mov dword [ebp - 0x2edc], eax
mov eax, dword [ebp - 0x2ef8]
mov esi, 0x100118c
lea edi, [ebp - 0x2ed8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x2f04]
push edx
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x2ef4]
push edx
push dword [ebp - 0x2efc]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2f50], 0x1c
mov dword [ebp - 0x2f4c], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x1002dc3
mov eax, dword [ebp - 0x2ef8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
push 0x1002735
push dword [ebp - 0x2efc]
push 0x67
push dword [0x1004b0c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x10031a3
mov eax, dword [ebp - 0x2f04]
cmp eax, ebx
jne 0x1002de4
mov eax, dword [ebp - 0x2ef8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x10031a3
mov ecx, dword [eax]
lea edx, [ebp - 0x2f1c]
push edx
lea edx, [ebp - 0x2f34]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x1002ebb
push dword [ebp - 0x2f18]
call dword [0x100106c]
mov esi, eax
cmp esi, ebx
je 0x1002ea1
cmp dword [esi + 0x10], ebx
mov dword [ebp - 0x2f08], ebx
jbe 0x1002e93
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x2f0c], eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x2f0c]
mov eax, dword [eax]
add eax, esi
push eax
call fcn.01001df5
test eax, eax
je 0x1002e7b
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push 0x18f
push dword [0x1004054]
call edi
cmp eax, 0xffffffff
jne 0x1002e7b
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x180
push dword [0x1004054]
call edi
inc dword [ebp - 0x2f08]
mov eax, dword [ebp - 0x2f08]
add dword [ebp - 0x2f0c], 0x10
cmp eax, dword [esi + 0x10]
jb 0x1002e30
push dword [ebp - 0x2f18]
call dword [0x1001070]
jmp 0x1002eac
push 0x10012c0
call sub.ntdll.dll_DbgPrint
pop ecx
lea eax, [ebp - 0x2f1c]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
jmp 0x1002ec8
push eax
push 0x10012a4
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov eax, dword [ebp - 0x2f04]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2ef8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1002961
mov eax, 0x3f3
sub edx, eax
je 0x1003179
sub edx, 3
je 0x1003134
dec edx
je 0x100303d
sub edx, 5
je 0x1002f1e
sub edx, 0xec64
jne 0x10031a3
jmp 0x1002975
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
or dword [ebp - 0x2efc], 0xffffffff
push 0x3fc
push ecx
mov dword [ebp - 0x2f04], ebx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x1002f4f
mov dword [ebp - 0x2f04], 0x80000000
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x146
jmp 0x1002f6b
push ebx
push ebx
push 0x144
push dword [0x100406c]
call edi
push ebx
push ebx
push esi
push dword [0x100406c]
call edi
test eax, eax
jne 0x1002f5c
cmp dword [0x1004b08], ebx
mov dword [ebp - 0x2ef8], ebx
jle 0x100302d
xor esi, esi
mov eax, dword [0x1004b04]
add eax, esi
mov ecx, dword [eax]
and ecx, 0x80000000
cmp ecx, dword [ebp - 0x2f04]
jne 0x1002fcc
add eax, 4
push eax
push ebx
push 0x143
push dword [0x100406c]
call edi
cmp dword [ebp - 0x2efc], 0xffffffff
jne 0x1002fcc
mov eax, dword [ebp - 0x2ef8]
mov dword [ebp - 0x2efc], eax
inc dword [ebp - 0x2ef8]
mov eax, dword [ebp - 0x2ef8]
add esi, 0x288
cmp eax, dword [0x1004b08]
jl 0x1002f8e
cmp dword [ebp - 0x2efc], 0xffffffff
je 0x100302d
mov esi, dword [ebp - 0x2efc]
mov eax, dword [0x1004b04]
imul esi, esi, 0x288
lea eax, [esi + eax + 4]
push eax
push 0xffffffffffffffff
push 0x14d
push dword [0x100406c]
call edi
mov eax, dword [0x1004b04]
lea eax, [esi + eax + 0x86]
push eax
push dword [0x100405c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x2efc]
mov dword [0x1004084], eax
jmp 0x100295c
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
push ebx
push 0x100277b
push ecx
push 0x66
push dword [0x1004b0c]
xor edi, edi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [0x10046ec]
cmp esi, ebx
je 0x1002961
jmp 0x1003114
mov word [ebp - 0x20c], bx
jmp 0x100309e
cmp ax, 9
je 0x10030a6
cmp ax, 0xa
je 0x10030a6
cmp ax, 0xd
je 0x10030a6
cmp ax, 0x20
je 0x10030a6
mov word [ebp + edi*2 - 0x20c], ax
inc edi
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
cmp ax, bx
jne 0x1003079
cmp edi, ebx
mov word [ebp + edi*2 - 0x20c], bx
jbe 0x10030e8
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push 0x18f
push dword [0x1004054]
call edi
cmp eax, 0xffffffff
jne 0x10030e8
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x180
push dword [0x1004054]
call edi
mov ax, word [esi]
xor edi, edi
cmp ax, bx
je 0x100311d
cmp ax, 9
je 0x100310a
cmp ax, 0xa
je 0x100310a
cmp ax, 0xd
je 0x100310a
cmp ax, 0x20
jne 0x1003114
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x10030f2
cmp word [esi], bx
jne 0x1003070
push dword [0x10046ec]
call dword [fcn.01001018]
mov dword [0x10046ec], ebx
jmp 0x1002961
cmp dword [ebp + 0x14], 0x300
jne 0x10031a3
mov eax, dword [0x1004084]
xor esi, esi
inc esi
cmp eax, 0xffffffff
je 0x1003170
mov ecx, dword [0x1004b04]
imul eax, eax, 0x288
test byte [eax + ecx + 3], 1
je 0x1003170
push dword [0x1004058]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jg 0x1003170
push ebx
jmp 0x1003171
push esi
push dword [0x1004080]
jmp 0x1003197
cmp dword [ebp + 0x14], ebx
jne 0x10031a3
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor esi, esi
inc esi
cmp eax, esi
jne 0x1003190
push esi
jmp 0x1003191
push ebx
push dword [0x1004060]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2f00], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2f00]
pop edi
pop esi
pop ebx
call fcn.0100342a
leave
ret 0x10