Function at 0x42a450
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x48
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push edi
mov ebx, ecx
test eax, eax
jne 0x42a699
cmp ebx, 0x9c5
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
jl 0x42a53f
cmp ebx, 0x9c6
jle 0x42a5ca
cmp ebx, 0x9cd
jne 0x42a53f
push ecx
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x42a53f
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0x400
push 0x9f3
push esi
call edi
push 0
push 0
push 0x400
push 0x9f3
push esi
mov ebx, eax
call edi
lea ecx, [eax*4]
lea eax, [ebx + ebx*2]
cmp eax, ecx
je 0x42a53f
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
je 0x42a569
cmp eax, 0x7d0
mov dword [esp + 0xc], eax
jl 0x42a501
mov dword [esp + 0xc], 0x7d0
mov eax, dword [esp + 0xc]
push eax
push 0x447514
mov ecx, 0x20
lea ebx, [esp + 0x18]
call fcn.00401250
add esp, 8
mov ecx, ebx
push ecx
push 0x9f0
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [esp + 0xc]
push edx
push 1
push 0x405
push 0x9f1
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [0x45a2c8]
push 1
push 0x7d3
push eax
call ebx
push eax
call ebp
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00433c32
add esp, 0x48
ret
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x7d0
mov dword [esp + 0xc], eax
jl 0x42a58a
mov dword [esp + 0xc], 0x7d0
mov eax, dword [esp + 0xc]
push eax
push 0x447514
mov ecx, 0x20
lea ebx, [esp + 0x18]
call fcn.00401250
add esp, 8
mov ecx, ebx
push ecx
push 0x9f2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [esp + 0xc]
push edx
push 1
push 0x405
push 0x9f3
jmp 0x42a53c
push 0x9c5
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
dec edi
neg edi
sbb edi, edi
inc edi
push edi
push 0x9c7
push esi
call ebx
push eax
call ebp
push edi
push 0x9f5
push esi
call ebx
push eax
call ebp
push edi
push 0x9f4
push esi
call ebx
push eax
call ebp
push edi
push 0x9c8
push esi
call ebx
push eax
call ebp
push 0x9c6
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov edi, eax
dec edi
neg edi
sbb edi, edi
inc edi
push edi
push 0x9c9
push esi
call ebx
push eax
call ebp
push edi
push 0x9f3
push esi
call ebx
push eax
call ebp
push edi
push 0x9f2
push esi
call ebx
push eax
call ebp
push edi
push 0x9ca
push esi
call ebx
push eax
call ebp
push edi
push 0x9cb
push esi
call ebx
push eax
call ebp
push edi
push 0x9f1
push esi
call ebx
push eax
call ebp
push edi
push 0x9f0
push esi
call ebx
push eax
call ebp
push edi
push 0x9cc
push esi
call ebx
push eax
call ebp
push edi
push 0x9cd
push esi
call ebx
push eax
call ebp
jmp 0x42a545
cmp eax, 0x300
jne 0x42a8a9
mov eax, ebx
sub eax, 0x9f0
je 0x42a6bb
sub eax, 2
je 0x42a6bb
sub eax, 2
jne 0x42a896
push ebx
push esi
xor edi, edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x20
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x42a6ef
push 0xa
lea edx, [esp + 0x14]
push edi
push edx
call fcn.00434b2e
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x42a6ef
xor edi, edi
cmp ebx, 0x9f4
jne 0x42a72b
cmp edi, 0xc8
jle 0x42a704
mov edi, 0xc8
push edi
push 1
push 0x405
push 0x9f5
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, dword [0x45a2c8]
push 1
push 0x7d3
push edx
jmp 0x42a97a
cmp edi, 0x7d0
jle 0x42a738
mov edi, 0x7d0
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
push 1
push 0x405
lea eax, [ebx + 1]
push eax
push esi
call ebp
push 0x9cd
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x42a86f
cmp ebx, 0x9f2
jne 0x42a7e8
cmp dword [0x45a2fc], edi
je 0x42a896
lea eax, [edi + edi*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 0x7d0
jl 0x42a78e
mov eax, 0x7d0
push eax
push 0x447514
mov ecx, 0x20
lea ebx, [esp + 0x18]
mov dword [0x45a300], eax
mov dword [0x45a2fc], edi
call fcn.00401250
add esp, 8
mov ecx, ebx
push ecx
push 0x9f0
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [0x45a300]
push edx
push 1
push 0x405
push 0x9f1
push esi
call ebp
mov edx, dword [0x45a2c8]
push 1
push 0x7d3
push edx
jmp 0x42a97a
cmp dword [0x45a300], edi
je 0x42a896
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x7d0
jl 0x42a815
mov eax, 0x7d0
push eax
push 0x447514
mov ecx, 0x20
lea ebx, [esp + 0x18]
mov dword [0x45a2fc], eax
mov dword [0x45a300], edi
call fcn.00401250
add esp, 8
mov eax, ebx
push eax
push 0x9f2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [0x45a2fc]
push ecx
push 1
push 0x405
push 0x9f3
push esi
call ebp
mov edx, dword [0x45a2c8]
push 1
push 0x7d3
push edx
jmp 0x42a97a
cmp ebx, 0x9f2
jne 0x42a890
mov edx, dword [0x45a2c8]
push 1
push 0x7d3
mov dword [0x45a2fc], edi
push edx
jmp 0x42a97a
mov dword [0x45a300], edi
mov edx, dword [0x45a2c8]
push 1
push 0x7d3
push edx
jmp 0x42a97a
cmp eax, 0x200
jne 0x42a969
mov eax, ebx
sub eax, 0x9f0
je 0x42a8cb
sub eax, 2
je 0x42a8cb
sub eax, 2
jne 0x42a987
push ebx
push esi
xor edi, edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
push 0x20
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x42a901
push 0xa
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00434b2e
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x42a901
xor edi, edi
cmp ebx, 0x9f4
jne 0x42a918
cmp edi, 0xc8
jle 0x42a925
mov edi, 0xc8
jmp 0x42a925
cmp edi, 0x7d0
jle 0x42a925
mov edi, 0x7d0
push edi
push 1
push 0x405
inc ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
push 0x447514
mov ecx, 0x20
lea ebx, [esp + 0x18]
call fcn.00401250
add esp, 8
mov edx, ebx
push edx
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00433c32
add esp, 0x48
ret
cmp eax, 1
jne 0x42a987
push eax
mov eax, dword [0x45a2c8]
push 0x7d3
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x50]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433c32
add esp, 0x48
ret