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

Disassembly:
sub esp, 0x7c
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 0x14
call esi
push 5
mov edi, eax
call esi
cmp edi, 0xffffff
je 0x4831cd
cmp edi, eax
jne 0x4831cd
push 0xf
jmp 0x4831cf
push 0x14
call esi
push 0
mov dword [esp + 0x1c], eax
call esi
mov esi, dword [0x4d01ac]
mov edx, dword [0x4d01a8]
mov ecx, dword [0x4d01a4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x344]
neg eax
sbb eax, eax
and eax, 0x4000
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], eax
mov eax, dword [0x4d01a0]
mov dword [esp + 0x40], edx
add esi, 0x18
push esi
add edx, 0x30
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
add ecx, 0xffffffe8
push ecx
add eax, 0xffffffd0
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x340]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x483255
mov eax, dword [ebp + 0x24]
test eax, eax
jge 0x48326f
push 0x15
call esi
imul eax, dword [ebp + 0x24]
neg eax
jmp 0x48326f
cmp eax, 1
jne 0x48326d
mov eax, dword [ebp + 0x24]
test eax, eax
jge 0x48326f
push 0x14
call esi
imul eax, dword [ebp + 0x24]
neg eax
jmp 0x48326f
xor eax, eax
add dword [esp + 0x38], eax
mov eax, dword [ebp + 0x340]
test eax, eax
jne 0x483290
mov eax, dword [ebp + 0x24]
test eax, eax
jge 0x4832aa
push 0x15
call esi
imul eax, dword [ebp + 0x24]
neg eax
jmp 0x4832aa
cmp eax, 1
jne 0x4832a8
mov eax, dword [ebp + 0x24]
test eax, eax
jge 0x4832aa
push 0x14
call esi
imul eax, dword [ebp + 0x24]
neg eax
jmp 0x4832aa
xor eax, eax
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
sub dword [esp + 0x40], eax
push ecx
push esi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4832d4
mov eax, dword [0x4d01b8]
jmp 0x4832fa
sub esi, dword [0x4d01b0]
mov eax, dword [esp + 0x38]
cmp esi, eax
mov dword [esp + 0xc], esi
jge 0x4832ec
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [esp + 0x40]
sub eax, dword [0x4d0188]
cmp esi, eax
jle 0x4832fe
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x340], 1
jne 0x483333
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
push 1
mov edi, eax
push ebp
push edi
mov esi, ebx
mov dword [esp + 0x20], edi
call fcn.00480960
mov ecx, dword [esp + 0x54]
add esp, 0xc
xor edx, edx
cmp eax, 4
mov eax, dword [esp + 0x4c]
sete dl
neg eax
push eax
neg ecx
push ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
sub esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x340]
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x4833c9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], 0
je 0x483456
push 0xfffffffffffffff4
push ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x64], 0xfffff001
mov dword [esp + 0x68], 0x10001
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 2
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], 0x20
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x58]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x483478
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x30]
call fcn.004801e0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esp, 8
cmp dword [ebp + 0x340], 1
jne 0x4834a1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [0x4d0188]
push ecx
push edx
add eax, esi
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x340]
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x4834f2
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], 0
je 0x48357f
push 0xfffffffffffffff4
push ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
push ebx
mov dword [esp + 0x64], 0xfffff001
mov dword [esp + 0x68], 0x10001
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 3
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], 0x20
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x58]
push ecx
push edx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4835a1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edi, [esp + 0x30]
call fcn.004801e0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esp, 8
cmp dword [ebp + 0x340], 1
jne 0x4835ca
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x44]
mov eax, dword [0x4d0188]
mov ecx, dword [esp + 0x3c]
push edx
add eax, esi
push eax
push ecx
push esi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp + 0x340]
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x483617
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], 0
je 0x4836a4
push 0xfffffffffffffff4
push ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x64], 0xfffff001
mov dword [esp + 0x68], 0x10001
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 5
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], 1
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x58]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4836fd
cmp dword [ebp + 0x344], 0
je 0x4836ea
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x4b40a0
lea edx, [esp + 0x34]
push edx
push 2
push 0
push 0
push edi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x4836fd
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
mov esi, edi
call fcn.004802d0
mov esi, dword [esp + 0xc]
cmp dword [ebp + 0x340], 1
jne 0x483726
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
test eax, eax
jle 0x48375b
mov edx, dword [esp + 0x40]
sub edx, dword [0x4d0188]
mov ecx, dword [esp + 0x38]
sub eax, dword [ebp + 0x18]
sub edx, ecx
push edx
inc eax
push eax
sub esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x48375f
sub esi, dword [esp + 0x38]
cmp esi, dword [0x4cc818]
je 0x483784
mov ecx, dword [0x4d023c]
movzx eax, si
push 0
shl eax, 0x10
or eax, 5
push eax
push ecx
push ebx
mov dword [ebp + 0x20], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
mov dword [0x4cc818], esi
push ebp
push edi
mov esi, ebx
call fcn.00480960
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x7c
ret