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

Disassembly:
push 0xffffffffffffffff
push 0x5c2e0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, dword [esp + 0x84]
xor ebp, ebp
push edi
push ebp
mov eax, dword [esi + 0x1c]
push ebp
push 0x1032
mov dword [esp + 0x1c], ecx
push eax
call ebx
cmp eax, ebp
jbe 0x4d9c26
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x1027
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push ebp
push ebp
push 0x1027
push ecx
lea edi, [eax - 1]
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x1028
push edx
mov ebp, eax
call ebx
lea ebp, [eax + ebp - 1]
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x1004
push eax
mov dword [esp + 0x98], ebp
call ebx
dec eax
cmp ebp, eax
jle 0x4d9ae7
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x1004
push ecx
call ebx
dec eax
mov dword [esp + 0x88], eax
mov ebp, dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [esi + 0x1c]
push 2
push edi
push 0x100c
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4d9b50
cmp edi, dword [esp + 0x88]
jg 0x4d9b50
lea eax, [esp + 0x44]
mov ecx, esi
push eax
push 0
push 0
push edi
call fcn.0059acff
lea ecx, [esp + 0x54]
push ecx
push 0
push 1
push edi
mov ecx, esi
call fcn.0059acff
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jge 0x4d9b3d
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call ebp
jmp 0x4d9aed
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push edx
call fcn.005a3a10
xor edi, edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x80], edi
call fcn.005a3261
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0x5d5254
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x64]
neg eax
sbb eax, eax
mov byte [esp + 0x80], 2
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call fcn.005a3318
cmp eax, edi
jne 0x4d9bb9
mov dword [esp + 0x14], vtable.CGdiObject.0
mov byte [esp + 0x80], 3
jmp 0x4d9bf8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x6c]
sub ecx, ebp
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x18]
call fcn.005a3cb8
cmp eax, edi
jne 0x4d9c2d
mov dword [esp + 0x14], vtable.CGdiObject.0
mov byte [esp + 0x80], 4
lea ecx, [esp + 0x14]
call fcn.005a3d0f
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call fcn.005a3380
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 0xffffffff
call fcn.005a3a82
xor eax, eax
jmp 0x4d9e13
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.005a3443
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
sub edx, ecx
push 0xff00
sub eax, ebp
push edx
push eax
push edi
push edi
lea ecx, [esp + 0x48]
call fcn.005a8e07
mov ecx, dword [esi + 0x1c]
push edi
push edi
push 0x1027
push ecx
call ebx
lea edi, [eax - 1]
mov edx, dword [esi + 0x1c]
push 2
push edi
push 0x100c
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4d9d29
cmp edi, dword [esp + 0x88]
jg 0x4d9d29
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push edi
call fcn.0059b030
mov ebp, eax
test ebp, ebp
je 0x4d9c80
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push edi
mov ecx, esi
call fcn.0059acff
lea edx, [esp + 0x54]
mov ecx, esi
push edx
push 0
push 1
push edi
call fcn.0059acff
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jge 0x4d9ceb
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x24]
push 0x10
sub eax, ecx
mov ecx, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
push ecx
and eax, dword [esp + 0x40]
push edx
push eax
mov eax, dword [ebp + 4]
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
jmp 0x4d9c80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d9d34
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.005a3443
push 8
call fcn.0059cff9
add esp, 4
mov dword [esp + 0x88], eax
test eax, eax
mov byte [esp + 0x80], 5
je 0x4d9d67
mov ecx, eax
call fcn.0059b47f
mov esi, eax
jmp 0x4d9d69
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push 1
push 0
sub ecx, eax
push 1
sub edx, ebx
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x94], 2
call fcn.0059b544
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xff00
and eax, ebp
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x14]
call fcn.005a3d0f
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4d9dd3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [esp + 0x14], vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 6
call fcn.005a3d0f
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
call fcn.005a3380
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 0xffffffff
call fcn.005a3a82
mov eax, esi
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 8