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

Disassembly:
push 0xffffffffffffffff
push 0x525cba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00504c85
mov ebx, dword [esp + 0xc0]
mov eax, dword [ebx + 0x18]
xor edi, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xbc], edi
call fcn.00505121
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x60], ecx
push 1
lea ecx, [esp + 0x20]
call fcn.00504a88
mov edx, dword [esi + 0x1c]
push edi
push edi
push 0x31
push edx
call dword [sym.imp.user32.dll_SendMessageA]
push eax
call fcn.00505410
push eax
lea ecx, [esp + 0x20]
call fcn.005054fa
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], vtable.CBrush.0
mov ebp, dword [sym.imp.user32.dll_GetSysColorBrush]
push 0xd
mov byte [esp + 0xbc], 1
call ebp
push eax
lea ecx, [esp + 0x7c]
call fcn.0050541e
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], vtable.CBrush.0
push 4
mov byte [esp + 0xbc], 2
call ebp
push eax
lea ecx, [esp + 0x54]
call fcn.0050541e
mov ecx, dword [esi + 0xac]
mov edx, dword [ebx + 8]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], 0xffffffff
jle 0x476bf1
lea esp, [esp]
cmp eax, edi
jl 0x476ce9
cmp eax, dword [esi + 0xac]
jge 0x476ce9
mov ecx, dword [esi + 0xa8]
cmp edx, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
je 0x476ce0
mov ecx, dword [esi + 0xac]
inc eax
cmp eax, ecx
jl 0x476bc0
add ebx, 0x1c
push ebx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.user32.dll_CopyRect]
cmp dword [esp + 0x38], edi
jne 0x476cee
mov eax, vtable.CBrush.0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], eax
push 0x10
mov byte [esp + 0xbc], 4
call ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.0050541e
push 0x14
call ebp
push eax
lea ecx, [esp + 0x5c]
call fcn.0050541e
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add eax, 3
inc ecx
dec edx
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x74], esi
mov esi, dword [sym.imp.user32.dll_FillRect]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], ecx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x24]
push ecx
push edx
call esi
push 1
push edi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.00505158
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 3
mov dword [esp + 0x58], esi
call fcn.00505475
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 2
mov dword [esp + 0x38], esi
call fcn.00505475
jmp 0x4772d0
mov dword [esp + 0x10], eax
jmp 0x476bf1
call fcn.004f797e
mov ebx, dword [esp + 0x60]
mov eax, ebx
and eax, 1
mov dword [esp + 0x34], eax
je 0x476d6c
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.user32.dll_FillRect]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
call ebp
cmp dword [esp + 0x10], edi
jge 0x476d1f
test bl, 8
je 0x476d81
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x88], eax
push edx
lea eax, [esp + 0x84]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x94], 0x15
call ebp
jmp 0x476d81
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
mov ebx, eax
mov ebp, edx
sar ebx, 1
and ebp, 2
mov dword [esp + 0x58], ebp
jne 0x476fc4
cmp dword [esp + 0x34], edi
je 0x476db4
cmp dword [esp + 0x10], edi
jge 0x476dbd
test dl, 8
je 0x476fc4
lea eax, [ecx + ebx + 0x12]
mov ebp, edx
lea ecx, [ecx + ebx - 2]
and ebp, 8
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0x14
mov dword [esp + 0x8c], eax
mov dword [esp + 0x60], ebp
je 0x476ee7
cmp dword [esp + 0x34], edi
jne 0x476ee7
xor eax, eax
mov ecx, eax
and ecx, 1
mov edx, 0x5555
shl edx, cl
inc eax
cmp eax, 8
mov word [esp + eax*2 + 0x9e], dx
jl 0x476e00
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], vtable.CBitmap.0
lea eax, [esp + 0xa0]
push eax
push 1
push 1
push 8
push 8
mov byte [esp + 0xcc], 5
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x18]
call fcn.0050541e
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], vtable.CBrush.0
mov ecx, dword [esp + 0x18]
push ecx
mov byte [esp + 0xbc], 6
call dword [sym.imp.gdi32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x6c]
call fcn.0050541e
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x20]
call fcn.00504ae4
push 0x14
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x20]
call fcn.00504a59
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 5
mov dword [esp + 0x68], vtable.CGdiObject.0
call fcn.00505475
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 2
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.00505475
jmp 0x476eff
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.user32.dll_FillRect]
cmp dword [esp + 0x10], edi
jge 0x476f9b
cmp ebp, edi
je 0x476f9b
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], vtable.CFont.0
push edi
push 0x556428
push 0x64
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 7
call fcn.00513ddf
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.005054fa
push 7
mov ebp, eax
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x20]
call fcn.00504ae4
mov ecx, dword [esp + 0x20]
push 0x25
lea eax, [esp + 0x84]
push eax
push 1
push 0x5355e0
push ecx
call dword [sym.imp.user32.dll_DrawTextA]
push ebp
lea ecx, [esp + 0x20]
call fcn.005054fa
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], 2
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.00505475
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp ebp, edi
sete dl
push 0xf
lea eax, [esp + 0x84]
lea edx, [edx + edx + 2]
push edx
push eax
push ecx
call dword [sym.imp.user32.dll_DrawEdge]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x58]
cmp dword [esp + 0x10], edi
jl 0x477009
lea edx, [ecx + ebx]
mov ecx, dword [esp + 0x40]
add ecx, 2
cmp ebp, edi
lea eax, [esi + 0x8c]
je 0x476fe6
lea eax, [esi + 0x9c]
jmp 0x476ff2
cmp dword [esp + 0x34], edi
je 0x476ff2
lea eax, [esi + 0x94]
push edi
push edx
mov edx, dword [esp + 0x28]
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 + 0x64], eax
mov ecx, dword [esp + 0x38]
push edi
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, dword [esi + 0x50]
mov byte [esp + 0xc4], 8
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 + 0xb8], 9
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
push 9
push edi
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xc8], 0xa
call fcn.004fc289
mov edx, dword [esp + 0x64]
push 9
push 1
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004fc289
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x9c], eax
sub eax, edx
sub ebx, eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x98], ebx
add ecx, 0x18
xor ebx, ebx
cmp eax, edi
setne bl
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x98], edx
lea edx, [esp + 0x3c]
push edx
dec ebx
lea eax, [esp + 0x18]
and ebx, 0x100000
push eax
mov ecx, esi
or ebx, 0x24
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x64], edi
call fcn.00476080
cmp ebp, edi
mov eax, dword [esp + 0x34]
je 0x4771e7
cmp eax, edi
jne 0x4771dc
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
call esi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0x14]
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 + 0x2c]
sar eax, 1
add eax, ebx
push eax
push ebp
push 0
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x48]
push ecx
push 0
push 0
push edx
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
call esi
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x94]
mov ecx, dword [esp + 0x14]
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 + 0x2c]
sar eax, 1
add eax, ebp
push eax
push ebx
push 0
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x44]
push ecx
push 0
push 0
push edx
call edi
jmp 0x477250
cmp ebp, edi
je 0x4771e7
mov eax, 0x11
jmp 0x4771f1
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 + 0x20]
call fcn.00504ae4
push ebx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00475fb0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], edi
je 0x477250
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add edx, ecx
push ebx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], edx
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00475fb0
lea ecx, [esp + 0x1c]
call fcn.00505158
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47727f
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 + 0xb8], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4772a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4772cb
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 + 0xb8], 1
call fcn.00505475
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], esi
mov byte [esp + 0xb8], 0
call fcn.00505475
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0050519f
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret 4