Function at 0x4f41c0
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544d57
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4f49ad
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4f49ad
mov eax, dword [0x59ee04]
mov edi, 1
test eax, eax
jne 0x4f432c
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x18], 8
jle 0x4f432c
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x4f432c
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor edx, ecx
test dl, 3
jne 0x4f432c
cmp dword [0x5923e4], edi
jne 0x4f432c
mov eax, dword [0x5923e8]
mov dword [0x59ee04], edi
mov dword [esp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor eax, edx
xor edx, edx
xor eax, ecx
mov ecx, 0x64
div ecx
test edx, edx
jge 0x4f428c
xor edx, edx
jmp 0x4f4296
cmp edx, 0x64
jb 0x4f4296
mov edx, 0x63
lea edi, [edx + edx*2]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
mov edx, dword [edi*4 + 0x58eae8]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
push 8
call fcn.00401240
add esp, 0x24
test ax, ax
jne 0x4f4320
mov edx, dword [edi*4 + 0x58eaec]
shr edx, 0x10
cmp word [esp + 0x4c], dx
jne 0x4f4320
mov ax, word [esp + 0x34]
cmp ax, word [edi*4 + 0x58eaec]
jne 0x4f4320
mov ecx, dword [edi*4 + 0x58eaf0]
lea eax, [edi*4 + 0x58eaf0]
shr ecx, 0x10
cmp word [esp + 0x30], cx
jne 0x4f4320
mov dx, word [esp + 0x14]
cmp dx, word [eax]
je 0x4f432c
mov eax, dword [0x592300]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x5927bc]
add ecx, 0x101c
call fcn.004ee030
mov ebp, dword [esp + 0x178]
mov edi, eax
lea ecx, [esp + 0x18]
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x90]
mov dword [esp + 0x18], edx
push ecx
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, esi
call fcn.004f66f0
cmp edi, 0xffffffff
mov ebx, eax
je 0x4f453f
lea ecx, [esp + 0xfc]
xor ebp, ebp
mov dword [esp + 0xfc], vtable.CRectTracker.0
call fcn.0052f27b
xor eax, eax
mov dword [esp + 0xfc], 0x54da44
mov dword [esp + 0x144], 0xff
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x90]
mov dword [esp + 0x16c], eax
push eax
mov eax, dword [esp + 0x20]
push 1
push eax
push ecx
push edx
lea ecx, [esp + 0x110]
call fcn.004d6030
test eax, eax
jne 0x4f43ea
mov ebp, 1
lea ecx, [esp + 0x104]
call fcn.0052ca70
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x110]
cmp ebp, 1
je 0x4f442d
mov edx, dword [esp + 0x10c]
sub edx, dword [esp + 0x104]
cmp edx, 8
jl 0x4f451d
mov edx, ecx
sub edx, eax
cmp edx, 8
jl 0x4f451d
mov edx, edi
mov dword [esp + 0x88], ecx
and edx, 0xffff
mov ecx, ebx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x104]
neg ecx
shr edi, 0x10
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10c]
push ecx
lea edx, [esp + 0x80]
mov dword [esp + 0x7c], edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push 0
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], ebp
call edi
test ebp, ebp
jne 0x4f4498
lea eax, [esp + 0x7c]
push eax
call fcn.004da760
add esp, 4
jmp 0x4f44b6
cmp dword [0x591df8], 1
jne 0x4f44b6
lea ecx, [esp + 0x80]
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.004da6c0
add esp, 8
push ebx
lea eax, [esp + 0x80]
push 0
push eax
call edi
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esi + 0x90]
call fcn.0051cf18
mov edx, dword [esi]
lea eax, [esp + 0x74]
push 0
push eax
push 2
push 0x202003c
mov ecx, esi
call dword [edx + 0xe0]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4f4509
mov ecx, dword [0x5927bc]
add ecx, 0x101c
call fcn.004edfc0
mov edx, dword [0x5927bc]
push 0
push esi
lea ecx, [edx + 0x4f8]
call fcn.004fce40
mov dword [esp + 0x16c], 0xffffffff
mov dword [esp + 0xfc], 0x54da44
lea ecx, [esp + 0xfc]
jmp 0x4f506e
lea ecx, [esp + 0x98]
mov dword [esp + 0x98], vtable.CRectTracker.0
call fcn.0052f27b
xor edi, edi
mov dword [esp + 0x98], 0x54da44
mov dword [esp + 0xe0], 0xff
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
lea eax, [esp + 0x98]
mov ecx, esi
push eax
mov dword [esp + 0x170], 1
call fcn.004f6890
cmp eax, 1
jne 0x4f479a
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
push edx
push eax
lea ecx, [esp + 0xa0]
call fcn.0052f40b
mov edi, eax
cmp edi, 0xffffffff
je 0x4f4798
cmp edi, 8
je 0x4f4798
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x90]
push 0
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0xac]
call fcn.004d5fe0
cmp eax, 1
jne 0x4f5051
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x28], eax
call fcn.0052ca70
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
mov edx, ebx
neg edx
push edx
lea eax, [esp + 0xa4]
push 0
push eax
call ebp
lea ecx, [esp + 0xa0]
push ecx
call fcn.004da760
add esp, 4
lea edx, [esp + 0xa0]
push ebx
push 0
push edx
call ebp
cmp dword [0x591df8], 1
jne 0x4f475e
test edi, edi
je 0x4f46f8
cmp edi, 3
je 0x4f46ca
cmp edi, 7
je 0x4f46ca
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jg 0x4f46bf
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa8], ecx
jmp 0x4f46ca
mov edx, dword [esp + 0x38]
mov dword [esp + 0xa0], edx
cmp edi, 1
je 0x4f472b
cmp edi, 4
je 0x4f46f8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jg 0x4f46ed
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xac], ecx
jmp 0x4f46f8
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xa4], edx
cmp edi, 1
je 0x4f472b
cmp edi, 2
je 0x4f472b
cmp edi, 5
je 0x4f472b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x4f4720
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa0], ecx
jmp 0x4f472b
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa8], edx
cmp edi, 3
je 0x4f475e
cmp edi, 2
je 0x4f475e
cmp edi, 6
je 0x4f475e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jle 0x4f4753
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xa4], ecx
jmp 0x4f475e
mov edx, dword [esp + 0x44]
mov dword [esp + 0xac], edx
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0xa0]
push eax
call fcn.0051cf18
mov ecx, dword [esi + 0x84]
mov edx, dword [esi]
lea eax, [esp + 0xa0]
push eax
mov eax, dword [ecx]
push eax
push 2
push 0x202003a
mov ecx, esi
call dword [edx + 0xe0]
jmp 0x4f5051
xor edi, edi
lea ecx, [esp + 0xe4]
push ecx
push edi
push edi
push edi
push ebp
mov ecx, esi
call fcn.004f3cf0
cmp eax, 0xffffffff
jne 0x4f47b6
xor ebx, ebx
jmp 0x4f47c4
mov ecx, dword [esi + 0x4c]
push eax
add ecx, 0x14
call fcn.004cfca0
mov ebx, eax
push 0x10
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
test ax, ax
setl dl
mov eax, edx
cmp ebx, edi
mov dword [esp + 0x10], eax
je 0x4f4d76
cmp eax, 1
je 0x4f4d76
mov ebx, dword [esp + 0x174]
push 0
push ebx
mov ecx, esi
call fcn.004f40b0
mov edi, eax
test edi, edi
je 0x4f4866
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jle 0x4f4866
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push ebx
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x130d
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x4f4866
test byte [esp + 0x28], 6
jne 0x4f498b
mov edi, dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.004f3f70
test eax, eax
jne 0x4f487e
push edi
mov ecx, esi
call fcn.004f36d0
lea ecx, [esp + 0x74]
call fcn.00470b30
lea ecx, [esp + 0xe8]
mov byte [esp + 0x16c], 3
call fcn.00470b30
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x174], 4
call fcn.004f5320
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
mov edi, eax
shr edi, 2
neg eax
sbb eax, eax
xor ebx, ebx
and eax, edx
mov dword [esp + 0x10], edi
test edi, edi
jle 0x4f4937
mov ebp, eax
mov edx, dword [ebp]
mov ecx, dword [esi + 0x4c]
push 0
push 0
push edx
add ecx, 0x14
call fcn.004cfd40
test eax, eax
je 0x4f492f
lea edi, [eax + 0x18]
push edi
call fcn.00471ab0
add edi, eax
push edi
call fcn.00471ab0
mov ecx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4 + 4]
lea edi, [edx + eax + 4]
push edi
call fcn.00471ab0
mov cl, byte [eax + edi + 4]
add esp, 0xc
test cl, 0x10
jne 0x4f4d28
mov edi, dword [esp + 0x10]
inc ebx
add ebp, 4
cmp ebx, edi
jl 0x4f48d9
mov edi, dword [sym.imp.USER32.dll_GetCapture]
call edi
test eax, eax
je 0x4f4950
push 0
push 0
push 0x1f
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call edi
test eax, eax
je 0x4f49b4
mov esi, 0x5477b0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x16c], 3
mov dword [esp + 0xe8], esi
call fcn.00470d30
lea ecx, [esp + 0x74]
mov byte [esp + 0x16c], 1
mov dword [esp + 0x74], esi
call fcn.00470d30
lea ecx, [esp + 0x98]
mov dword [esp + 0x16c], 0xffffffff
mov dword [esp + 0x98], 0x54da44
call fcn.0052f404
xor eax, eax
jmp 0x4f5078
mov eax, dword [esi + 0x90]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x90]
push 0x22
push 0
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
push eax
call fcn.0051c7c7
mov edi, eax
push 1
mov ecx, edi
call fcn.0051c9f1
push 7
mov ecx, edi
call fcn.0051ca1f
push 0xffffff
push 0
push 2
lea ecx, [esp + 0x44]
call fcn.0051d2d2
lea edx, [esp + 0x38]
mov ecx, edi
push edx
mov byte [esp + 0x170], 5
call fcn.0051c95a
mov dword [esp + 0x70], eax
mov eax, dword [edi]
push 5
mov ecx, edi
call dword [eax + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00515cbf
call fcn.0051acd2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [esi + 0x90]
cmp eax, dword [edx + 0x1c]
jne 0x4f4bec
test ebx, ebx
jne 0x4f4bec
push ebx
push ebx
lea eax, [esp + 0x150]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4f4bdf
mov eax, dword [esp + 0x14c]
cmp eax, 0x100
jne 0x4f4ab8
cmp dword [esp + 0x150], 0x1b
je 0x4f4bec
jmp 0x4f4ac3
cmp eax, 0x204
je 0x4f4bec
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x148]
cmp edx, dword [ecx + 0x1c]
je 0x4f4ae8
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4f4bc8
sub eax, 0x200
je 0x4f4b15
sub eax, 2
je 0x4f4b07
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4f4bc8
mov ebx, 1
mov dword [esp + 0x4c], ebx
jmp 0x4f4bc8
cmp ebp, 1
jne 0x4f4b34
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0xec]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004f50a0
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x90]
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x50]
mov edx, dword [eax + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
sub ecx, eax
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x3c], ecx
call fcn.004da6c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x6c]
add esp, 8
mov dword [esp + 0x50], edx
add ecx, eax
lea edx, [esp + 0x50]
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0xec]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004f50a0
mov ebp, 1
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [esi + 0x90]
cmp eax, dword [edx + 0x1c]
je 0x4f4a79
jmp 0x4f4bec
mov eax, dword [esp + 0x150]
push eax
call fcn.0053394e
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
call fcn.0051acdb
cmp ebp, 1
jne 0x4f4c18
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0xec]
push edx
push eax
push edi
mov ecx, esi
call fcn.004f50a0
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, edi
call fcn.0051c95a
mov edx, dword [esp + 0x48]
mov ecx, edi
push edx
call fcn.0051c95a
mov eax, dword [esi + 0x90]
mov ecx, dword [edi + 4]
push ecx
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x78]
and al, 0xfc
neg eax
sbb eax, eax
inc eax
cmp ecx, eax
je 0x4f4c69
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x5927bc]
push 0
push esi
add ecx, 0x4f8
call fcn.004fce40
cmp dword [esp + 0x4c], 1
jne 0x4f4d0d
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4f4d0d
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub edi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], edi
sub ecx, eax
mov eax, edi
cdq
xor eax, edx
mov dword [esp + 0x34], ecx
sub eax, edx
cmp eax, 2
jg 0x4f4ce5
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4f4ce5
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.004f36d0
mov eax, dword [0x5927bc]
push 0
push esi
lea ecx, [eax + 0x4f8]
call fcn.004fce40
jmp 0x4f4d0d
mov edx, dword [esi]
and ecx, 0xffff
shl ecx, 0x10
and edi, 0xffff
lea eax, [esp + 0x74]
or ecx, edi
push ecx
push eax
push 2
push 0x202003d
mov ecx, esi
call dword [edx + 0xe0]
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov byte [esp + 0x16c], 6
call fcn.0051d2bc
jmp 0x4f4d3c
mov ecx, dword [0x5927bc]
push 0
push esi
add ecx, 0x4f8
call fcn.004fce40
mov esi, 0x5477b0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x16c], 3
mov dword [esp + 0xe8], esi
call fcn.00470d30
lea ecx, [esp + 0x74]
mov byte [esp + 0x16c], 1
mov dword [esp + 0x74], esi
call fcn.00470d30
jmp 0x4f5051
cmp eax, edi
jne 0x4f4d84
push edi
push 1
mov ecx, esi
call fcn.004f3850
lea ecx, [esp + 0xfc]
mov dword [esp + 0xfc], vtable.CRectTracker.0
call fcn.0052f27b
mov dword [esp + 0xfc], 0x54da44
mov dword [esp + 0x144], 0xff
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov byte [esp + 0x16c], 2
push edx
mov edx, dword [esi + 0x90]
push 1
push eax
push ecx
push edx
lea ecx, [esp + 0x110]
call fcn.004d6030
cmp dword [esp + 0x48], 1
jne 0x4f4e28
cmp ebx, edi
je 0x4f4ffa
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f4e1b
push ebx
mov ecx, esi
call fcn.004f3f70
test eax, eax
je 0x4f4e1b
push ebx
mov ecx, esi
call fcn.004f4180
jmp 0x4f4ffa
push ebx
mov ecx, esi
call fcn.004f4150
jmp 0x4f4ffa
cmp eax, 1
jne 0x4f4ffa
xor edi, edi
lea ecx, [esp + 0x104]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0052ca70
xor ebx, ebx
mov ebp, 1
mov ecx, dword [esi + 0x4c]
push 0
push ebp
add ecx, 0x14
call fcn.004cfc50
mov edi, eax
test edi, edi
je 0x4f4fb8
mov ecx, dword [esi + 0x4c]
push ebp
add ecx, 0x14
call fcn.004d0680
cmp eax, 1
jne 0x4f4e82
inc ebp
jmp 0x4f4e56
add edi, 0x18
push edi
call fcn.00471ab0
add edi, eax
push edi
call fcn.00471ab0
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x4f4fb2
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4f4fb2
mov ecx, dword [esp + 0xe4]
test ecx, ecx
je 0x4f4ec8
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4f4fb2
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x90]
lea edx, [esp + 0x50]
push edx
call fcn.0051cedc
lea eax, [esp + 0x104]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x60]
mov dword [esp + 0x68], edx
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4f4fb2
mov ecx, dword [esi + 0x4c]
push ebp
add ecx, 0x14
call fcn.004cfca0
mov ecx, dword [esi + 0x8c]
mov edx, 0
shr ecx, 2
dec ecx
js 0x4f4f70
mov edi, dword [esi + 0x84]
cmp dword [edi], eax
je 0x4f4f6c
inc edx
add edi, 4
cmp edx, ecx
jle 0x4f4f55
push eax
lea ecx, [esi + 0x7c]
call fcn.00470df0
jmp 0x4f4f89
cmp edx, ecx
jle 0x4f4f7b
push eax
lea ecx, [esi + 0x7c]
call fcn.00470df0
jmp 0x4f4f89
shl edx, 2
push 4
push edx
lea ecx, [esi + 0x7c]
call fcn.00471570
push 9
lea eax, [esp + 0x54]
push 9
push eax
mov ebx, 1
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
inc ebp
jmp 0x4f4e56
test ebx, ebx
jne 0x4f4fec
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4f4fec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f4fe2
push edi
mov ecx, esi
call fcn.004f3f70
test eax, eax
je 0x4f4fe2
push edi
mov ecx, esi
call fcn.004f4180
jmp 0x4f4ffa
push edi
mov ecx, esi
call fcn.004f4150
jmp 0x4f4ffa
lea ecx, [esp + 0x20]
push 0
push ecx
mov ecx, esi
call fcn.004f35a0
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x78]
and al, 0xfc
neg eax
sbb eax, eax
inc eax
cmp ecx, eax
je 0x4f501f
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
mov dword [esi + 0x78], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x5927bc]
push 0
push esi
lea ecx, [eax + 0x4f8]
call fcn.004fce40
lea ecx, [esp + 0xfc]
mov byte [esp + 0x16c], 1
mov dword [esp + 0xfc], 0x54da44
call fcn.0052f404
mov dword [esp + 0x16c], 0xffffffff
mov dword [esp + 0x98], 0x54da44
lea ecx, [esp + 0x98]
call fcn.0052f404
mov eax, 1
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 8