Function at 0x40f560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c28f8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f5a9
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
mov dword [esp + 0x8c], 0
call fcn.004e636d
mov esi, dword [ebp + 8]
add esi, 0xfc
mov dword [0x637a44], eax
mov dword [0x637a48], edx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
add esp, 4
test ecx, ecx
jl 0x40f604
push 0x5f5b74
push eax
call fcn.004e5595
add esp, 8
test eax, eax
je 0x40f604
sub eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40f621
push 0x637a44
mov esi, str._m__d__Y_n_n_H:_M:_S_n_n
lea edi, [esp + 0x18]
call fcn.00405a00
mov byte [esp + 0x88], 1
jmp 0x40f63c
push 0x637a44
mov esi, str._Y__m__d_n_n_H:_M:_S_n_n
lea edi, [esp + 0x18]
call fcn.00405a00
mov byte [esp + 0x88], 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e20
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f66e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f688
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x58]
push 0x637a44
push ecx
mov byte [esp + 0x90], 3
call fcn.004e4d5c
add esp, 8
test eax, eax
jne 0x40f6bf
mov eax, dword [esp + 0x70]
add eax, 1
jmp 0x40f6c1
xor eax, eax
sub eax, 1
cmp eax, 6
ja case.default.0x40f6cd
jmp dword [eax*4 + 0x40fa28]
push 0x1b1
lea edx, [esp + 0x20]
push edx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 4
call fcn.00404e20
lea ecx, [esp + 0x1c]
jmp 0x40f7ec
push 0x1b2
lea eax, [esp + 0x24]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 5
call fcn.00404e20
lea ecx, [esp + 0x20]
jmp 0x40f7ec
push 0x1b3
lea ecx, [esp + 0x28]
push ecx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 6
call fcn.00404e20
lea ecx, [esp + 0x24]
jmp 0x40f7ec
push 0x1b5
lea edx, [esp + 0x2c]
push edx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 7
call fcn.00404e20
lea ecx, [esp + 0x28]
jmp 0x40f7ec
push 0x1b4
lea eax, [esp + 0x30]
push eax
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 8
call fcn.00404e20
lea ecx, [esp + 0x2c]
jmp 0x40f7ec
push 0x1b6
lea ecx, [esp + 0x34]
push ecx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 9
call fcn.00404e20
lea ecx, [esp + 0x30]
jmp 0x40f7ec
push 0x1b7
lea edx, [esp + 0x38]
push edx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], 0xa
call fcn.00404e20
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 3
call fcn.004773d0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00416e00
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0xfc
push ecx
push eax
lea eax, [esp + 0x3c]
mov bl, 0xb
push eax
mov byte [esp + 0x94], bl
call fcn.00416e00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 0xc
call fcn.00404e20
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f86a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], vtable.CBitmap.0
mov byte [esp + 0x88], 0xd
call fcn.004ca1a2
mov eax, dword [eax + 0xc]
push 0x220
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x44]
call fcn.004cd970
mov ecx, dword [esp + 0x44]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xda0]
push ecx
push edi
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xda0]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004cd69b
mov esi, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], vtable.CFont.0
push edi
push 0x5f5bac
push 0x50
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 0xe
call fcn.004ce28f
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
push 1
mov ecx, esi
mov ebx, eax
call fcn.004ccfab
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
mov ecx, esi
call edx
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x18]
push 1
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x58], 0x92
mov dword [esp + 0x5c], 0x96
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, esi
call edx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xda0]
push eax
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, vtable.CGdiObject.0
mov byte [esp + 0x88], 0xd
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
call fcn.004cd9c3
mov byte [esp + 0x88], 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], esi
call fcn.004cd9c3
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa0f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4