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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57c592
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
call fcn.005609f6
xor ebx, ebx
cmp eax, ebx
jne 0x4a55c9
xor eax, eax
jmp 0x4a55cc
mov eax, dword [eax + 4]
mov esi, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push 1
mov ecx, esi
call fcn.005600f3
mov ebp, dword [esi]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [ebp + 0x30]
lea edx, [edi + 0x184]
mov ecx, esi
push edx
call fcn.00560017
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x7c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
jle 0x4a5680
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x8c]
push ecx
push edx
lea ecx, [edi + 0xa0]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebx
call fcn.004a6cf0
mov eax, dword [eax]
mov ecx, dword [edi + 0x48]
mov eax, dword [eax + 0x10]
add eax, ebp
cmp eax, ecx
jg 0x4a566b
mov ecx, dword [edi + 0x7c]
mov ebp, eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4a5625
jmp 0x4a5680
mov eax, dword [esp + 0xfc]
mov edx, dword [edi + 0x48]
mov eax, dword [eax + 4]
sub eax, edx
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x7c]
cmp eax, ecx
mov dword [esp + 0x7c], eax
jge 0x4a5d97
jmp 0x4a5697
xor ebx, ebx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0xc]
jg 0x4a5d97
mov ebp, dword [ecx]
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x78]
sub ebp, ecx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4a5bc1
jmp 0x4a56c9
xor ebx, ebx
mov ecx, dword [0x5e8e38]
mov dword [esp + 0x4c], ecx
push 0x5d9564
lea ecx, [esp + 0x50]
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x4c], 0x64
call fcn.005597b5
lea edx, [esp + 0x14]
lea eax, [esp + 0x94]
push edx
push eax
lea ecx, [edi + 0x80]
mov dword [esp + 0xf8], 1
call fcn.004a64d0
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x94]
cmp ecx, eax
je 0x4a5738
mov edx, dword [ecx + 0x10]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], edx
call fcn.00559765
mov eax, dword [0x5e8e38]
mov dword [esp + 0x34], eax
push 0x5d9564
lea ecx, [esp + 0x38]
mov byte [esp + 0xf4], 2
call fcn.005597b5
mov dword [esp + 0x38], 0xffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x98], ecx
lea eax, [esp + 0x98]
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [edi + 0x90]
mov byte [esp + 0xf8], 3
mov dword [esp + 0xa4], edx
call fcn.004a6bc0
mov eax, dword [edi + 0x94]
mov ecx, dword [esp + 0x88]
cmp ecx, eax
je 0x4a57e0
lea ebx, [ecx + 0x14]
lea ecx, [esp + 0x34]
push ebx
call fcn.00559765
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
push 0xfffffffffffffffe
lea ecx, [esp + 0x24]
add eax, ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [edi + 0x6c]
mov edx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x50], edx
jne 0x4a582e
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0xc10
mov ecx, dword [eax - 8]
jmp 0x4a5848
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x4a5843
push 0xc12
jmp 0x4a5848
push 0xc11
lea ebx, [esp + 0x24]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [edi + 0x58]
mov eax, dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp ecx, ebx
je 0x4a5912
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp edx, dword [edi + 0x70]
sete cl
cmp ecx, ebx
je 0x4a592c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x60]
push 2
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xe0]
push eax
push ecx
lea ecx, [edi + 0xa0]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ebx
call fcn.004a6cf0
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x60]
lea ecx, [edx + eax + 1]
inc eax
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x50]
cmp eax, 0xc56a31
mov dword [esp + 0x68], ecx
jne 0x4a5a01
push 0xd
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
call fcn.005609f6
cmp eax, ebx
jne 0x4a59b9
xor eax, eax
jmp 0x4a59bc
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x70]
cmp ecx, edx
jne 0x4a592c
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
cmp edx, ecx
je 0x4a587d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x70]
push 2
push ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xc8]
push eax
push ecx
lea ecx, [edi + 0xa0]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
call fcn.004a6cf0
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x70]
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
inc eax
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x74], eax
call fcn.00560ac8
cmp eax, ebx
jne 0x4a5a61
xor eax, eax
jmp 0x4a5a64
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x60]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call ebp
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x4a59f4
mov edx, dword [esi]
push 0xe
mov dword [esp + 0x54], edx
call ebp
mov edx, dword [esp + 0x50]
push eax
mov ecx, esi
jmp 0x4a5aa4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x4a5aa7
push eax
lea ecx, [esp + 0xa4]
call fcn.00560ac8
cmp eax, ebx
jne 0x4a5a16
xor eax, eax
jmp 0x4a5a19
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x5c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0xa0], vtable.CGdiObject.0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf0], 4
call fcn.00560a62
mov eax, dword [edi + 0x50]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov byte [esp + 0xf0], 3
jne 0x4a59f4
mov edx, dword [esi]
not eax
jmp 0x4a5aa1
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x8c], vtable.CGdiObject.0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf0], 5
call fcn.00560a62
mov edx, dword [esi]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xf0], 3
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, 3
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x4a5abe
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x6c]
cmp eax, ebx
jne 0x4a5ad5
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0x810
mov ecx, dword [eax - 8]
jmp 0x4a5aef
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x4a5aea
push 0x812
jmp 0x4a5aef
push 0x811
lea ebp, [esp + 0x24]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
cmp dword [esp + 0x40], ebx
je 0x4a5b3d
call fcn.00569c56
mov ebp, dword [esp + 0x40]
call fcn.00569c56
mov eax, dword [eax + 0xc]
and ebp, 0xffff
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x20]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [esp + 0x44], ebx
je 0x4a5b82
call fcn.00569c56
mov ebp, dword [esp + 0x44]
call fcn.00569c56
mov eax, dword [eax + 0xc]
and ebp, 0xffff
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x28]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
add ecx, 0xfffffff0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 1
call fcn.0055962c
lea ecx, [esp + 0x4c]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0055962c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a56c7
xor ebx, ebx
cmp dword [edi + 0x68], ebx
je 0x4a5bf6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xfc]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0xdc]
push edx
push eax
mov ecx, esi
call fcn.0056051c
mov ecx, dword [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call fcn.00560568
cmp dword [edi + 0x64], ebx
je 0x4a5c2f
mov edx, dword [esp + 0x1c]
lea eax, [edx + 1]
lea edx, [esp + 0xc0]
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.0056051c
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
push ebp
call fcn.00560568
jmp 0x4a5c67
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jle 0x4a5c67
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax]
lea ebx, [edx + 1]
push ebx
lea edx, [esp + 0xd4]
push ecx
push edx
mov ecx, esi
call fcn.0056051c
push ebx
push ebp
mov ecx, esi
call fcn.00560568
xor ebx, ebx
mov eax, dword [esp + 0xfc]
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x14], ebx
mov ebx, dword [eax]
mov eax, dword [edi + 0x78]
sub ebx, ecx
test eax, eax
jle 0x4a5d7b
mov ecx, dword [esp + 0xfc]
cmp ebx, dword [ecx + 8]
jg 0x4a5d7b
mov edx, dword [0x5e8e38]
mov dword [esp + 0x58], edx
push 0x5d9564
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf4], 6
mov dword [esp + 0x58], 0x64
call fcn.005597b5
lea ebp, [edi + 0x80]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [esp + 0xf4], 7
call fcn.004a7fe0
mov ebp, dword [ebp + 4]
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x4a5cf8
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jl 0x4a5cf8
lea eax, [esp + 0x18]
jmp 0x4a5d06
mov dword [esp + 0x84], ebp
lea eax, [esp + 0x84]
mov eax, dword [eax]
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x4a5d26
mov edx, dword [eax + 0x10]
add eax, 0x14
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x58], edx
call fcn.00559765
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
inc ecx
lea edx, [esp + 0xb8]
lea ebp, [eax + ebx]
push ecx
push ebp
push edx
mov ecx, esi
call fcn.0056051c
mov eax, dword [esp + 0x30]
mov ecx, esi
inc eax
push eax
push ebp
call fcn.00560568
lea ecx, [esp + 0x58]
mov ebx, ebp
mov dword [esp + 0xf0], 0xffffffff
call fcn.0055962c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a5c84
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4a5695
mov edx, dword [esp + 0x80]
mov ecx, esi
push edx
call fcn.00560017
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret 8