Function at 0x47639d
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x525c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00504c85
mov ebp, dword [esp + 0xb0]
mov eax, dword [ebp + 0x18]
xor ebx, ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], ebx
call fcn.00505121
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4c], ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.00504a88
mov edx, dword [esi + 0x1c]
push ebx
push ebx
push 0x31
push edx
call dword [sym.imp.user32.dll_SendMessageA]
push eax
call fcn.00505410
push eax
lea ecx, [esp + 0x1c]
call fcn.005054fa
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], vtable.CBrush.0
mov edi, dword [sym.imp.user32.dll_GetSysColorBrush]
push 0xd
mov byte [esp + 0xac], 1
call edi
push eax
lea ecx, [esp + 0x6c]
call fcn.0050541e
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], vtable.CBrush.0
push 0x1d
mov byte [esp + 0xac], 2
call edi
push eax
lea ecx, [esp + 0x7c]
call fcn.0050541e
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], vtable.CBrush.0
push 4
mov byte [esp + 0xac], 3
call edi
push eax
lea ecx, [esp + 0x54]
call fcn.0050541e
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
and eax, 1
mov dword [esp + 0x34], eax
lea eax, [esp + 0x58]
je 0x4764ab
mov edx, dword [esp + 0x7c]
push edx
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.user32.dll_FrameRect]
jmp 0x4764b8
mov edx, dword [esp + 0x54]
push edx
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
mov ebp, dword [ebp + 8]
cmp ebp, ebx
mov dword [esp + 0x70], ebp
jne 0x4765b5
mov eax, vtable.CBrush.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
push 0x10
mov byte [esp + 0xac], 5
call edi
push eax
lea ecx, [esp + 0x2c]
call fcn.0050541e
push 0x14
call edi
push eax
lea ecx, [esp + 0x3c]
call fcn.0050541e
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
inc ecx
add eax, 3
dec edx
mov dword [esp + 0x84], eax
inc eax
mov dword [esp + 0x8c], esi
mov esi, dword [sym.imp.user32.dll_FillRect]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x84]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call esi
push 1
push ebx
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.user32.dll_OffsetRect]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
call esi
lea ecx, [esp + 0x18]
call fcn.00505158
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 4
mov dword [esp + 0x38], esi
call fcn.00505475
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 3
mov dword [esp + 0x28], esi
call fcn.00505475
jmp 0x476a6c
mov edx, dword [esi + 0xac]
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x10], 0xffffffff
jle 0x4765fd
lea esp, [esp]
cmp eax, ebx
jl 0x47666f
cmp eax, dword [esi + 0xac]
jge 0x47666f
mov ecx, dword [esi + 0xa8]
mov edi, dword [esp + 0x70]
mov ebp, dword [ecx + eax*4]
cmp edi, ebp
lea ecx, [ecx + eax*4]
je 0x476669
inc eax
cmp eax, edx
jl 0x4765d0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
mov edi, eax
mov al, byte [esp + 0x4c]
sar edi, 1
test al, 8
je 0x476729
lea eax, [ecx + edi]
lea ecx, [eax + 0x10]
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0x34], ebx
mov edx, 2
mov ebp, 0x12
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebp
je 0x476674
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
jmp 0x4766af
mov dword [esp + 0x10], eax
jmp 0x4765fd
call fcn.004f797e
push 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x90]
push 1
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
call dword [sym.imp.user32.dll_InflateRect]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.user32.dll_FrameRect]
cmp dword [esp + 0x10], ebx
jge 0x47672f
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], vtable.CFont.0
push ebx
push 0x556428
push 0x64
lea ecx, [esp + 0x44]
mov byte [esp + 0xb4], 6
call fcn.00513ddf
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005054fa
push 0x25
lea edx, [esp + 0x84]
push edx
push 1
mov ebp, eax
mov eax, dword [esp + 0x28]
push 0x5355e0
push eax
call dword [sym.imp.user32.dll_DrawTextA]
push ebp
lea ecx, [esp + 0x1c]
call fcn.005054fa
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 3
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.00505475
cmp dword [esp + 0x10], ebx
jl 0x47677a
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
add edi, ecx
mov cl, byte [esp + 0x4c]
add ebp, 2
test cl, 2
lea eax, [esi + 0x8c]
je 0x476753
lea eax, [esi + 0x9c]
jmp 0x47675f
cmp dword [esp + 0x34], ebx
je 0x47675f
lea eax, [esi + 0x94]
push ebx
mov edx, edi
push edx
mov edx, dword [esp + 0x24]
mov ecx, ebp
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.comctl32.dll_ImageList_Draw]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x70]
push ebx
lea eax, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esi + 0x50]
mov byte [esp + 0xb4], 7
call fcn.00501b87
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0xa8], 8
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
push 9
push ebx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xb8], 9
call fcn.004fc289
mov edx, dword [esp + 0x48]
push 9
push 1
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004fc289
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
add ecx, 0x18
mov dword [esp + 0x9c], eax
sub eax, edx
mov dword [esp + 0x90], ecx
sub edi, eax
mov eax, dword [esi + 0x78]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x94], edx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0xa0], edi
dec ecx
and ecx, 0x100000
or ecx, 0x24
mov ebp, ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x7c], ebx
call fcn.00476080
mov edi, dword [esp + 0x4c]
and edi, 2
mov eax, dword [esp + 0x34]
je 0x476978
cmp eax, ebx
jne 0x476978
mov ebp, dword [sym.imp.user32.dll_GetSysColor]
push 0xf
call ebp
push 4
mov dword [esp + 0x2c], eax
call ebp
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jne 0x476970
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call esi
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x90]
mov edx, edi
sub eax, edx
sub eax, ebx
push 0x22
cdq
push edi
mov edi, dword [sym.imp.user32.dll_DrawStateA]
push ecx
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, ebx
push eax
push ebp
push 0
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x48]
push ecx
push 0
push 0
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x70]
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call esi
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x94]
mov ecx, dword [esp + 0x70]
add ebx, eax
mov eax, dword [esp + 0x9c]
mov edx, esi
sub eax, edx
sub eax, ebp
push 0x22
cdq
push esi
push ecx
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, ebp
push eax
push ebx
push 0
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0
push edx
call edi
jmp 0x4769ec
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
cmp edi, ebx
je 0x476983
mov eax, 0x11
jmp 0x47698d
neg eax
sbb eax, eax
and eax, 7
add eax, 7
push eax
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x1c]
call fcn.00504ae4
push ebp
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00475fb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4769ec
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
add edx, ecx
push ebp
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x98], edx
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00475fb0
lea ecx, [esp + 0x18]
call fcn.00505158
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xa8], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476a1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xa8], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0xa8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476a67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], esi
mov byte [esp + 0xa8], 2
call fcn.00505475
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], esi
mov byte [esp + 0xa8], 1
call fcn.00505475
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], esi
mov byte [esp + 0xa8], 0
call fcn.00505475
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0050519f
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret 4