Function at 0x1004b550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
push 0x1017746c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [ebp + 8]
mov ecx, 1
cmp byte [0x10177410], 0
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0xc]
cmovne eax, ecx
mov ebx, dword [ebp + 0x10]
mov edx, dword [sym.imp.USER32.dll_GetPropW]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0x14c
mov dword [ebp + 0x24], eax
test esi, esi
jne 0x1004b5af
push str.Tab_Control
push ebx
call edx
mov edx, dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0x2c]
movsx ecx, ax
test ecx, ecx
mov dword [esp + 0x30], 0
mov eax, ecx
mov ecx, dword [ebp + 0x38]
cmovs eax, dword [esp + 0x30]
mov dword [edi + 0x64], eax
mov eax, dword [ebp + 0x48]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x5c], eax
test esi, esi
je 0x1004b78e
movss xmm1, dword [esi + 0x10c]
movss xmm0, dword [0x10161668]
mov eax, dword [ebp + 0x1c]
ucomiss xmm1, xmm0
mov dword [edi + 0x124], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 0x128], eax
movss dword [edi + 0x10c], xmm1
lahf
test ah, 0x44
jnp 0x1004b647
movd xmm0, dword [ebp + 0x14]
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
movss xmm0, dword [0x10161668]
add esp, 8
fstp qword [esp + 0x30]
cvttsd2si ecx, qword [esp + 0x30]
mov dword [esp + 0x2c], ecx
jmp 0x1004b64e
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1004b696
movd xmm0, dword [ebp + 0x18]
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
movss xmm0, dword [0x10161668]
add esp, 8
fstp qword [esp + 0x30]
cvttsd2si ecx, qword [esp + 0x30]
mov dword [esp + 0x30], ecx
jmp 0x1004b69d
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], eax
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1004b6e2
movd xmm0, dword [ebp + 0x1c]
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
movss xmm0, dword [0x10161668]
add esp, 8
fstp qword [esp + 0x38]
cvttsd2si eax, qword [esp + 0x38]
mov dword [ebp + 0x1c], eax
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1004b71e
movd xmm0, dword [ebp + 0x20]
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
fstp qword [esp + 0x40]
cvttsd2si eax, qword [esp + 0x40]
add esp, 8
jmp 0x1004b721
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp dword [ebp + 0x28], 0
mov dword [edi + 0x48], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x54], eax
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0x50], ecx
mov dword [edi + 0x20], esi
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x3c]
mov dword [edi + 0x58], eax
setne al
mov byte [edi + 0x3d], al
mov cl, byte [esi + 0xd5]
movzx edx, al
test cl, cl
movzx eax, cl
cmovne edx, eax
cmp dword [ebp + 0x24], 0
mov byte [edi + 0xd5], dl
setne al
mov byte [edi + 0x3c], al
mov cl, byte [esi + 0xd4]
test cl, cl
movzx edx, cl
movzx eax, al
cmovne edx, eax
mov byte [edi + 0xd4], dl
jmp 0x1004b981
cmp byte [0x10177410], 0
je 0x1004b7c5
cmp ecx, 0x3e8
jne 0x1004b7bc
push str.Tab_Control
push ebx
call edx
test eax, eax
jne 0x1004b7bc
mov eax, dword [sym.imp.USER32.dll_SetPropW]
push 1
push str.Tab_IsWinControl
push dword [edi + 0x10]
call eax
cmp byte [0x10177410], 0
jne 0x1004b837
cmp dword [0x10177524], 0
je 0x1004b837
mov eax, dword [0x10178378]
test eax, eax
je 0x1004b804
push ebx
call eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10161a50]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x10161854]
movss dword [edi + 0x10c], xmm0
jmp 0x1004b837
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x10161854]
movss dword [edi + 0x10c], xmm0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0xffffffffffffffe6
push ebx
call dword [sym.imp.USER32.dll_GetClassLongW]
or eax, 0xb
push eax
push 0xffffffffffffffe6
push ebx
call dword [sym.imp.USER32.dll_SetClassLongW]
movss xmm0, dword [edi + 0x10c]
ucomiss xmm0, dword [0x1016161c]
lahf
test ah, 0x44
jp 0x1004b86c
mov dword [edi + 0x10c], 0x3f800000
lea esi, [edi + 0x48]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 0x50]
mov eax, dword [edi + 0x54]
sub ecx, dword [esi]
sub eax, dword [edi + 0x4c]
mov esi, dword [sym.imp.USER32.dll_SetPropW]
push edi
push str.Tab_Control
push ebx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x54], eax
mov dword [edi + 0x78], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x124], ecx
mov dword [edi + 0x128], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], ebx
mov dword [edi + 0x58], 0
call esi
push 0
push str.Tab_WM_DESTROY
push ebx
call esi
push str.Isunicode
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x1004b911
push ebx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push eax
push str.Isunicode
push ebx
call esi
cmp dword [ebp + 0x28], 0
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
setne al
cmp dword [ebp + 0x24], 0
mov byte [edi + 0x3d], al
mov byte [edi + 0xd5], al
setne al
push 0
mov byte [edi + 0x3c], al
mov byte [edi + 0xd4], al
call fcn.100288a0
push eax
push str.Tab_CanvasEx
push ebx
call esi
mov eax, dword [ebp + 0x2c]
shr eax, 0x10
cwde
sub eax, 1
mov dword [ebp + 0x2c], eax
jns 0x1004b960
mov eax, 0xff
mov dword [ebp + 0x2c], eax
jmp 0x1004b967
cmp eax, 0x100
jg 0x1004b970
cmp byte [0x10177410], 0
je 0x1004b978
mov eax, 0x100
mov dword [ebp + 0x2c], eax
push eax
push str.Layered
push ebx
call esi
mov edx, dword [ebp + 0x40]
lea ecx, [edi + 0x68]
call fcn.100f45a0
mov eax, dword [edi + 0xac]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1004b9dd
xor esi, esi
lea ecx, [eax + 4]
cmp dword [eax], esi
jle 0x1004b9c0
mov ebx, eax
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x1004b9b8
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
lea ecx, [ebx + 4]
inc esi
cmp esi, dword [ebx]
jl 0x1004b9a5
mov ebx, dword [ebp + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x1004b9cf
push eax
call fcn.1012d67f
add esp, 4
push 8
push dword [esp + 0x34]
call fcn.1012d6b4
add esp, 8
push dword [edi + 0x68]
call sym.ExuiKrnln_X32.dll_RexLoadCursor
mov edx, dword [ebp + 0x4c]
lea ecx, [edi + 0x38]
mov dword [edi + 0xac], eax
mov dword [edi + 0x6c], 0
call fcn.100f45a0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1004ba12
mov eax, dword [ecx + 0x2c]
add eax, dword [ecx + 8]
je 0x1004ba12
inc dword [0x10177454]
mov eax, dword [ebp + 0x44]
mov esi, dword [sym.imp.USER32.dll_SetPropW]
mov dword [edi + 0x70], eax
test ax, ax
je 0x1004ba2f
push 1
push str.FocusManagement
push dword [edi + 0x28]
call esi
mov edx, dword [ebp + 0x30]
mov ecx, 0x10051950
test edx, edx
mov eax, ecx
cmovne eax, edx
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x34]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x40], ecx
test eax, eax
je 0x1004ba5c
push edi
push str.Tab_Control
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0xb4], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0xb0], eax
call esi
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
push 0
mov dword [edi + 0xb8], eax
call fcn.100288a0
mov esi, dword [ebp + 0xc]
mov dword [edi + 0xd8], eax
test esi, esi
je 0x1004bb1b
mov eax, dword [esi + 0x2c]
mov edx, esi
inc eax
mov dword [edi + 0x2c], eax
mov eax, dword [0x1017751c]
cmp dword [eax + 0x20], esi
je 0x1004baf6
cmp eax, esi
je 0x1004baf6
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1004baf8
mov eax, dword [esi + 0x2c]
inc eax
cmp dword [ecx + 0x2c], eax
jne 0x1004baf8
cmp dword [ecx + 0x2c], eax
jl 0x1004bae7
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x1004bad3
mov edx, dword [0x1017751c]
jmp 0x1004baf8
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x1004baf8
mov edx, dword [0x1017751c]
jmp 0x1004baf8
mov edx, eax
mov dword [edi + 0x18], edx
mov eax, dword [edx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [edx + 0x1c]
test eax, eax
jne 0x1004bb13
mov dword [0x1017751c], edi
mov dword [edx + 0x1c], edi
jmp 0x1004bb46
mov dword [eax + 0x18], edi
mov dword [edx + 0x1c], edi
jmp 0x1004bb46
mov eax, dword [0x1017751c]
mov dword [edi + 0x2c], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
mov dword [0x1017751c], edi
test eax, eax
jne 0x1004bb43
mov dword [0x1017745c], edi
jmp 0x1004bb46
mov dword [eax + 0x1c], edi
push 0
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 0x5c]
push eax
push dword [eax]
mov eax, dword [edi + 0x44]
push 0x3f4
push edi
call eax
push 0
xor eax, eax
cmp byte [edi + 0xd5], al
push 0
push 0
setne al
push eax
mov eax, dword [edi + 0x44]
push 0x3f2
push edi
call eax
test esi, esi
jne 0x1004bdc0
cmp dword [ebp + 0x2c], 0x100
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
jge 0x1004bba5
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call esi
cmp byte [0x10177413], 0
push fcn.10047510
push 0xfffffffffffffffc
push ebx
je 0x1004bbc8
call esi
push eax
mov eax, dword [sym.imp.USER32.dll_SetPropW]
push str.EXUI_USERDATA
push ebx
call eax
jmp 0x1004bbd0
call esi
push eax
push 0xffffffffffffffeb
push ebx
call esi
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10161668]
lahf
test ah, 0x44
jnp 0x1004bd7d
movd xmm0, dword [edi + 0x50]
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
mov esi, dword [edi + 0x50]
add esp, 8
movd xmm2, dword [edi + 0x48]
movss xmm3, dword [edi + 0x10c]
movss xmm4, dword [0x10161668]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov ecx, dword [edi + 0x54]
fstp qword [esp + 0x38]
movsd xmm1, qword [esp + 0x38]
subsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm1, qword [0x101616a0]
ucomiss xmm3, xmm4
subsd xmm2, xmm1
cvttsd2si eax, xmm2
mov dword [edi + 0x48], eax
lahf
test ah, 0x44
jp 0x1004bc63
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
jmp 0x1004bc9e
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
movss xmm3, dword [edi + 0x10c]
add esp, 8
mov esi, dword [edi + 0x50]
movss xmm4, dword [0x10161668]
fstp qword [esp + 0x38]
movsd xmm2, qword [esp + 0x38]
cmp dword [edi + 0x48], 0
mov ecx, dword [edi + 0x54]
movd xmm1, dword [edi + 0x4c]
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
subsd xmm2, xmm0
mulsd xmm2, qword [0x101616a0]
subsd xmm1, xmm2
cvttsd2si edx, xmm1
mov dword [edi + 0x4c], edx
jge 0x1004bcd6
mov dword [edi + 0x48], 0
test edx, edx
mov dword [esp + 0x30], 0
mov eax, edx
cmovs eax, dword [esp + 0x30]
ucomiss xmm3, xmm4
mov dword [edi + 0x4c], eax
lahf
test ah, 0x44
jnp 0x1004bd24
movd xmm0, esi
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
add esp, 8
call fcn.1014d240
mov ecx, dword [edi + 0x54]
movss xmm4, dword [0x10161668]
mov dword [edi + 0x50], eax
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1004bd5b
movd xmm0, ecx
sub esp, 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10130e30
add esp, 8
call fcn.1014d240
mov dword [edi + 0x54], eax
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x50]
mov esi, dword [edi + 0x4c]
test eax, eax
jne 0x1004bd76
push 0x2794
jmp 0x1004bdae
push 0x2714
jmp 0x1004bdae
mov eax, dword [edi + 0x24]
cmp eax, 0x320
je 0x1004bdbd
cmp eax, 0x384
je 0x1004bdbd
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x50]
mov esi, dword [edi + 0x4c]
test eax, eax
jne 0x1004bda9
push 0x27b7
jmp 0x1004bdae
push 0x2737
push ecx
push edx
push esi
push dword [edi + 0x48]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp + 0xc]
cmp byte [0x10177410], 0
jne 0x1004bdd0
mov ecx, edi
call fcn.10045910
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x1004be2c
cmp dword [0x10177454], 0
je 0x1004be2c
mov eax, dword [edi + 0x20]
mov esi, edi
test eax, eax
je 0x1004be08
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x1004be08
cmp dword [ecx + 0x2c], 0
je 0x1004be08
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1004be06
cmp dword [ecx + 8], 0
jne 0x1004be08
mov esi, eax
cmp dword [esi + 0x2c], 1
jl 0x1004be2c
push 0x1017746c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, 1
mov ecx, esi
call fcn.100504a0
push 0x1017746c
call ebx
mov ecx, edi
call fcn.1004f150
push 1
push 0x10177450
mov dword [edi + 0xbc], 0xe
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10177448], 0
jne 0x1004bea9
cmp byte [0x10177410], 0
jne 0x1004be90
cmp byte [0x10177412], 0
jne 0x1004be90
push 0x10047490
push 8
push 0x10177448
push 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0x1017746c
mov dword [0x10177448], eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48
push 0
push 8
push 0xa
push edi
push 0x10047430
push 0
push 0x10177448
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
push 0x1017746c
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48