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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
push eax
mov ebx, ecx
call fcn.005775a4
lea ecx, [edi + 0x1c]
push ecx
lea edx, [esp + 0x2c]
mov esi, eax
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [edi + 0x10]
push 0x2e
mov dword [esp + 0x18], eax
call fcn.0056572d
mov edi, eax
push 0x2d
mov dword [esp + 0x20], edi
call fcn.0056572d
neg edi
push edi
neg eax
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.user32.dll_InflateRect]
mov edx, dword [esi + 8]
push 0x26
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4bb61d
cmp dword [ebx + 0x108], 0
je 0x4bb61d
push 1
lea eax, [ebx + 0x100]
push eax
mov ecx, esi
call fcn.00577997
mov ecx, dword [esi + 4]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.gdi32.dll_RealizePalette]
cmp dword [ebx + 0x54], 0xfffffffd
jne 0x4bb633
push 0x14
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea edx, [esp + 0x2c]
push edx
jmp 0x4bb641
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0057804a
lea eax, [ebx + 0xbc]
test eax, eax
je 0x4bb77d
cmp dword [eax + 4], 0
je 0x4bb77d
mov eax, dword [ebx + 0xc0]
push eax
call fcn.005702dd
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00482270
test eax, eax
jle 0x4bb77d
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + 0xc4]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [ebx + 0xc8]
mov esi, eax
mov eax, dword [esp + 0x34]
sub eax, edx
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x30]
sar esi, 1
add esi, ecx
cmp dword [ebx + 0x118], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
jne 0x4bb6ee
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ecx]
sub eax, edx
mov dword [esp + 0x3c], eax
jmp 0x4bb70d
mov eax, dword [ebx + 0xc8]
add eax, edi
push eax
mov eax, dword [ebx + 0xc4]
add eax, esi
push eax
push edi
push esi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov edx, dword [edx + 0x16c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call edx
test byte [esp + 0x14], 4
je 0x4bb765
mov eax, dword [esp + 0x20]
push edi
push eax
lea eax, [ebx + 0xbc]
push 0
push eax
mov ecx, esi
call fcn.004ced50
add esp, 0x10
jmp 0x4bb7af
mov ecx, dword [esp + 0x20]
push 1
push edi
push ecx
push 0
push esi
lea ecx, [ebx + 0xbc]
call fcn.00472420
jmp 0x4bb7af
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx]
mov edx, dword [edx + 0x16c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call edx
cmp dword [ebx + 0x54], 0xfffffffd
jne 0x4bb81d
test byte [esp + 0x14], 4
jne 0x4bb81d
push 0x16
call dword [sym.imp.user32.dll_GetSysColor]
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
jge 0x4bb81d
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
lea ebx, [ebx]
cmp esi, eax
jge 0x4bb810
lea ecx, [esi + edi]
test cl, 1
je 0x4bb805
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.gdi32.dll_SetPixelV]
mov eax, dword [esp + 0x34]
add esi, 1
cmp esi, eax
jl 0x4bb7e4
mov esi, dword [esp + 0x2c]
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x4bb7e0
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0x26
push edx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4bb84b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bb84b
cmp dword [ebx + 0x108], 0
je 0x4bb84b
push 1
push eax
mov ecx, esi
call fcn.00577997
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4