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

Disassembly:
push 0xffffffffffffffff
push 0x4205d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov edi, ecx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x5c], ebx
mov cl, byte [ebp + 0x10]
xor eax, eax
test cl, 1
mov dword [esp + 0x9c], eax
je 0x413466
mov dword [esp + 0x14], 0xc56a31
mov dword [esp + 0x10], 0xffffff
jmp 0x413472
mov dword [esp + 0x14], 0xffffff
mov dword [esp + 0x10], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
mov eax, dword [edi + 4]
push 0x101f
push eax
call esi
push 0
push 0
push 0x1200
push eax
call esi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x2c]
test eax, eax
mov dword [esp + 0x28], 0
je 0x4134b1
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
setne cl
mov dword [esp + 0x28], ecx
mov edx, dword [edi + 4]
push 0
push 0
push 0x1037
push edx
call esi
and eax, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], eax
lea eax, [ebp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea eax, [esi + 2]
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0x20], edx
sub eax, 0xd
mov ebp, dword [ebp + 8]
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
dec ecx
push eax
push ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x413562
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
push 2
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push esi
push ebx
call edi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
push 0xe1e9ea
mov dword [esp + 0x48], eax
dec eax
push ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4135b2
push 0
push 0
lea edx, [esp + 0x40]
push 0
push edx
push 2
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push esi
push ebx
call edi
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
xor esi, esi
cmp ebp, esi
jl 0x4137c9
cmp dword [esp + 0x30], esi
je 0x413611
mov eax, dword [esp + 0x28]
push esi
cmp eax, esi
je 0x4135f6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ecx
push edx
push ebx
mov ecx, dword [eax + 0x2c]
push esi
push ecx
jmp 0x41360b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ebx
mov edx, dword [ecx + 0x2c]
push 1
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0x34]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
jle 0x4137c9
mov edx, dword [0x42505c]
mov dword [esp + 0x10], edx
mov ecx, dword [edx - 0xc]
lea edi, [edx - 0xc]
mov eax, 0x3e8
cmp ecx, 1
mov byte [esp + 0x9c], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edi
jg 0x41365e
cmp dword [edx - 4], eax
jge 0x4136bd
mov esi, dword [edx - 8]
cmp esi, eax
mov dword [esp + 0x28], esi
jle 0x41366d
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004037d0
test eax, eax
jne 0x413683
xor edx, edx
jmp 0x4136bd
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
inc edx
cmp edx, ecx
jb 0x4136ac
mov eax, ecx
lea esi, [edi + 0xc]
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push edi
mov dword [ecx - 8], esi
call fcn.004088c0
mov edx, dword [esp + 0x10]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x60]
mov ecx, dword [eax + 4]
push edx
push edi
push 0x102d
push ecx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x88], 0x3e8
call esi
lea ecx, [esp + 0x10]
call fcn.00408780
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov byte [eax + edx], 0
lea eax, [esp + 0x18]
mov edx, dword [ecx + 4]
push eax
push edi
push 0x1038
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 2
call esi
test ebp, ebp
jne 0x413755
mov eax, dword [esp + 0x18]
sub eax, 0x11
jmp 0x413767
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub ecx, 2
add eax, 5
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 0x8824
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x10]
mov edx, dword [0x425060]
mov byte [esp + 0x9c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4137bc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4137bc
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00419d30
add esp, 4
mov eax, dword [esp + 0x34]
inc ebp
cmp ebp, eax
jl 0x41362f
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4