Function at 0x422191
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp eax, 0x10
push edi
mov ebx, ecx
ja 0x4225fc
je 0x4225d1
dec eax
je 0x4223c3
dec eax
je 0x42232f
sub eax, 5
je 0x42231e
sub eax, 8
jne 0x42273a
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
sub dword [ebp - 0x20], 0x18
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
push 0xfffffffffffffff3
lea eax, [ebp - 0x1c]
push 0xfffffffffffffff3
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebx + 0x18]
mov ecx, ebx
add dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00421de9
mov eax, dword [ebx + 0x18]
push 0xd
pop edi
xor esi, esi
add eax, edi
cmp dword [ebx + 0xc], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], eax
jle 0x42226c
mov dword [ebp - 4], esi
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [eax + 0x10], 0
jne 0x422262
mov ecx, dword [eax + 0x14]
push 0
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0x18]
add edx, ecx
mov ecx, ebx
mov dword [ebp - 0x14], edx
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00421f20
add dword [ebp - 4], 0x1c
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x422233
xor esi, esi
cmp dword [ebx + 0xc], esi
mov dword [ebp - 4], esi
jle 0x42230c
mov eax, dword [ebx + 8]
add eax, esi
cmp dword [eax + 0x10], 0
je 0x4222fa
mov eax, dword [eax + 0x14]
cmp eax, edi
jle 0x42229e
mov ecx, dword [ebx + 0x18]
add ecx, edi
push ecx
push eax
push edi
mov ecx, ebx
push dword [ebp - 8]
call fcn.004220d8
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add ecx, edi
add eax, esi
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff3
push ecx
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x14]
push ecx
mov ecx, ebx
push dword [ebp - 8]
call fcn.004220d8
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], 0xb
add eax, esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0x18]
cmp ecx, edi
lea edx, [edx + ecx + 2]
mov dword [ebp - 0x14], edx
jle 0x4222e6
dec ecx
dec ecx
mov dword [ebp - 0x1c], ecx
push dword [ebp - 4]
mov ecx, ebx
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00421f20
inc dword [ebp - 4]
add esi, 0x1c
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0xc]
jl 0x42227a
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x42273a
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x42273a
push ebx
jmp 0x422734
xor edi, edi
cmp dword [ebx + 0xc], edi
mov dword [ebx + 0x24], edi
mov dword [ebp - 4], edi
jle 0x422363
xor esi, esi
mov eax, dword [ebx + 8]
mov eax, dword [esi + eax]
cmp eax, edi
je 0x42234f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 8]
inc dword [ebp - 4]
mov dword [esi + eax], edi
mov eax, dword [ebp - 4]
add esi, 0x1c
cmp eax, dword [ebx + 0xc]
jl 0x42233e
push dword [ebx + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebx + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
push dword [ebp + 8]
call dword [ebx + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [ebx + 4]
call esi
push eax
mov ecx, ebx
call fcn.00422167
push 2
push dword [ebx + 4]
call esi
push eax
mov ecx, ebx
call fcn.00422167
push 4
push dword [ebx + 4]
call esi
push eax
mov ecx, ebx
call fcn.00422167
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebx + 4], edi
jmp 0x42273a
mov edi, dword [ebp + 8]
xor esi, esi
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xd
mov ecx, ebx
mov dword [ebx + 4], edi
call fcn.00421d30
xor eax, eax
cmp dword [ebx + 0xc], esi
jle 0x4223f6
xor ecx, ecx
mov edx, dword [ebx + 8]
inc eax
mov dword [ecx + edx + 0x10], esi
add ecx, 0x1c
cmp eax, dword [ebx + 0xc]
jl 0x4223e6
mov eax, dword [ebx + 8]
push 1
pop esi
mov dword [eax + 0x10], esi
mov eax, dword [ebx + 8]
push dword [ebx + 0x14]
push dword [eax + 0xc]
movzx eax, word [eax + 8]
push edi
push eax
push dword [0x45fb8c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push eax
mov dword [ebx + 0x24], eax
call fcn.0041ed21
pop ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
neg eax
push eax
mov eax, dword [ebp - 0x1c]
neg eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x18]
push esi
push dword [ebp - 0x10]
add eax, 0x11
push dword [ebp - 0x14]
push eax
push 0x11
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [ebp - 0x14], 0x22
lea eax, [ecx + eax + 0x3c]
push 8
mov dword [ebp - 0x10], eax
call edi
mov esi, eax
push 1
shl esi, 1
sub esi, dword [ebp - 0x18]
push 4
call edi
add eax, esi
add eax, dword [ebp - 0x10]
push eax
push 7
call edi
shl eax, 1
sub eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
push esi
call fcn.004124ce
mov eax, dword [ebx + 8]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x24]
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push dword [0x45fb8c]
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe2
mov edi, str.BUTTON
push 1
push esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x16
push 0x46
push eax
push 0xd
push 0x50010001
push 0x4591b4
push edi
push 0
call esi
push 0
mov dword [ebp - 4], eax
push dword [0x45fb8c]
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe2
push 2
push dword [ebp + 8]
push 0x16
push 0x46
push eax
push 0x5d
push 0x50010000
push 0x4591ac
push edi
push 0
call esi
push 0
mov dword [ebp - 0xc], eax
push dword [0x45fb8c]
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe2
push 4
push dword [ebp + 8]
push 0x16
push 0x46
push eax
push 0xad
push 0x50010000
push str.Apply
push edi
push 0
call esi
push dword [ebp - 4]
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.0042213a
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.0042213a
push dword [ebp - 8]
mov ecx, ebx
call fcn.0042213a
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
push 0
push 0xc
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x30
push dword [ebp - 4]
call edi
push 0
push 0xc
call esi
push eax
push 0x30
push dword [ebp - 0xc]
call edi
push 0
push 0xc
call esi
push eax
push 0x30
push dword [ebp - 8]
call edi
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 8]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42273a
cmp byte [ebx + 0x28], 0
je 0x4225e9
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4225f5
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
xor eax, eax
jmp 0x42274c
sub eax, 0x19
je 0x42273a
sub eax, 0xe7
je 0x422705
sub eax, 0x11
je 0x422643
sub eax, 0xf0
jne 0x42273a
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
shr eax, 0x10
movsx eax, ax
push eax
mov ecx, ebx
movsx eax, word [ebp + 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.0042283d
jmp 0x42273a
mov eax, dword [ebp + 0x10]
dec eax
je 0x422654
dec eax
je 0x4225d1
dec eax
dec eax
jne 0x42273a
xor edi, edi
cmp dword [ebx + 0x20], edi
je 0x4226e0
cmp dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
mov esi, 0x111
jle 0x42269e
mov dword [ebp - 8], edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
cmp eax, edi
je 0x42268f
push edi
push 3
push esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4225f5
inc dword [ebp - 4]
add dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0xc]
jl 0x42266f
cmp dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
jle 0x4226d0
mov dword [ebp - 8], edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
cmp eax, edi
je 0x4226c1
push edi
push 4
push esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 4]
add dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0xc]
jl 0x4226a9
push dword [ebx + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [ebx + 0x10]
cmp dword [ebp + 0x10], 1
jne 0x4226ed
cmp ebx, edi
jmp 0x4225eb
push edi
push 4
push dword [ebp + 8]
mov dword [ebx + 0x20], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x42273a
cmp dword [ebp + 0x10], 0x1b
jne 0x42271f
push 0
push 2
push 0x111
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x42273a
cmp dword [ebp + 0x10], 0xd
jne 0x42272b
push 0
push 1
jmp 0x42270f
cmp dword [ebp + 0x10], 9
jne 0x42273a
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10